@aivenio/aquarium 1.4.0 → 1.5.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 (39) hide show
  1. package/dist/_variables.scss +1 -1
  2. package/dist/_variables_timescale.scss +1 -1
  3. package/dist/atoms.cjs +410 -162
  4. package/dist/atoms.mjs +409 -162
  5. package/dist/src/common/Card/Card.d.ts +35 -0
  6. package/dist/src/common/Card/Card.js +50 -0
  7. package/dist/src/common/Checkbox/Checkbox.js +12 -6
  8. package/dist/src/common/RadioButton/RadioButton.js +2 -2
  9. package/dist/src/common/Select/Select.js +4 -4
  10. package/dist/src/common/Switch/Switch.js +7 -10
  11. package/dist/src/common/index.d.ts +1 -0
  12. package/dist/src/common/index.js +2 -1
  13. package/dist/src/components/Avatar/Avatar.js +2 -2
  14. package/dist/src/components/Banner/Banner.js +2 -2
  15. package/dist/src/components/Card/Card.d.ts +8 -47
  16. package/dist/src/components/Card/Card.js +15 -27
  17. package/dist/src/components/Card/Compact.d.ts +36 -0
  18. package/dist/src/components/Card/Compact.js +33 -0
  19. package/dist/src/components/Card/types.d.ts +44 -0
  20. package/dist/src/components/Card/types.js +2 -0
  21. package/dist/src/components/Carousel/Carousel.js +4 -2
  22. package/dist/src/components/Chip/Chip.d.ts +1 -1
  23. package/dist/src/components/Chip/Chip.js +2 -2
  24. package/dist/src/components/Combobox/Combobox.js +4 -6
  25. package/dist/src/components/MultiSelect/MultiSelect.d.ts +1 -1
  26. package/dist/src/components/MultiSelect/MultiSelect.js +13 -8
  27. package/dist/src/components/Select/Select.js +2 -2
  28. package/dist/src/components/Skeleton/Skeleton.js +3 -2
  29. package/dist/src/components/Tabs/Tabs.js +54 -18
  30. package/dist/src/components/Timeline/Timeline.js +3 -3
  31. package/dist/src/components/Typography/Typography.d.ts +5 -3
  32. package/dist/src/components/Typography/Typography.js +1 -1
  33. package/dist/styles.css +75 -73
  34. package/dist/styles_timescaledb.css +75 -73
  35. package/dist/system.cjs +942 -764
  36. package/dist/system.mjs +909 -731
  37. package/dist/tsconfig.module.tsbuildinfo +1 -1
  38. package/dist/types/tailwindGenerated.d.ts +1 -1
  39. package/package.json +5 -4
package/dist/system.mjs CHANGED
@@ -1551,7 +1551,7 @@ __export(components_exports, {
1551
1551
  Box: () => Box,
1552
1552
  Breadcrumbs: () => Breadcrumbs,
1553
1553
  Button: () => Button,
1554
- Card: () => Card,
1554
+ Card: () => Card2,
1555
1555
  Carousel: () => Carousel,
1556
1556
  Checkbox: () => Checkbox2,
1557
1557
  CheckboxGroup: () => CheckboxGroup,
@@ -1769,7 +1769,7 @@ var Menu = React2.forwardRef(
1769
1769
  return /* @__PURE__ */ React2.createElement("ul", __spreadValues({
1770
1770
  ref,
1771
1771
  style: { maxHeight },
1772
- className: classNames(className, tw("overflow-y-auto"))
1772
+ className
1773
1773
  }, props), children);
1774
1774
  }
1775
1775
  );
@@ -1811,7 +1811,7 @@ var Item = React2.forwardRef(
1811
1811
  var _b = _a, { highlighted, selected, className, children } = _b, props = __objRest(_b, ["highlighted", "selected", "className", "children"]);
1812
1812
  return /* @__PURE__ */ React2.createElement("li", __spreadValues({
1813
1813
  ref,
1814
- className: classNames(className, "flex items-center gap-x-3 p-3", {
1814
+ className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
1815
1815
  "cursor-pointer": !props.disabled,
1816
1816
  "bg-grey-0": highlighted,
1817
1817
  "text-grey-20": props.disabled,
@@ -1831,7 +1831,7 @@ var ActionItem = React2.forwardRef(
1831
1831
  ref,
1832
1832
  role: "button",
1833
1833
  onClick: () => !props.disabled && (onClick == null ? void 0 : onClick()),
1834
- className: classNames(className, "flex items-center gap-x-3 text-primary-80", {
1834
+ className: classNames(className, "flex items-center gap-x-3 typography-small text-primary-80", {
1835
1835
  "p-3": !dense,
1836
1836
  "px-3 py-2": dense,
1837
1837
  "cursor-pointer": !props.disabled,
@@ -3450,6 +3450,7 @@ var BorderBox = createSimpleComponent(
3450
3450
  // src/components/Skeleton/Skeleton.tsx
3451
3451
  import React14 from "react";
3452
3452
  import isNumber from "lodash/isNumber";
3453
+ import isUndefined7 from "lodash/isUndefined";
3453
3454
  var Skeleton = ({
3454
3455
  width,
3455
3456
  height,
@@ -3460,7 +3461,7 @@ var Skeleton = ({
3460
3461
  }) => {
3461
3462
  const styles = {
3462
3463
  width: isNumber(width) ? `${width}px` : width,
3463
- height: isNumber(height) ? `${height}px` : height
3464
+ height: isUndefined7(height) ? "1em" : isNumber(height) ? `${height}px` : height
3464
3465
  };
3465
3466
  return /* @__PURE__ */ React14.createElement("div", {
3466
3467
  style: styles,
@@ -3480,12 +3481,14 @@ var Skeleton = ({
3480
3481
  var AvatarStack = ({ images }) => /* @__PURE__ */ React15.createElement(Box, {
3481
3482
  display: "flex",
3482
3483
  className: tw("[&>*:not(:first-child)]:-ml-3")
3483
- }, images.map((image) => image ? /* @__PURE__ */ React15.createElement(Avatar, {
3484
- key: image,
3485
- image
3486
- }) : /* @__PURE__ */ React15.createElement(Avatar.Skeleton, {
3487
- key: image
3488
- })));
3484
+ }, images.map(
3485
+ (image, index) => image ? /* @__PURE__ */ React15.createElement(Avatar, {
3486
+ key: image != null ? image : index,
3487
+ image
3488
+ }) : /* @__PURE__ */ React15.createElement(Avatar.Skeleton, {
3489
+ key: image != null ? image : index
3490
+ })
3491
+ ));
3489
3492
  var Avatar = ({ image }) => /* @__PURE__ */ React15.createElement("img", {
3490
3493
  src: image,
3491
3494
  className: classNames(tw("w-[32px] h-[32px]"))
@@ -3661,7 +3664,7 @@ var createBanner = (displayName, opts = {}) => {
3661
3664
  }, omit3(action, "text")), action.text))), (props.layout === "vertical" || props.layout === void 0) && props.image !== void 0 && /* @__PURE__ */ React18.createElement(Banner.ImageContainer, null, props.image ? /* @__PURE__ */ React18.createElement("img", {
3662
3665
  src: props.image,
3663
3666
  alt: props.imageAlt,
3664
- className: tw("w-full bg-cover object-cover"),
3667
+ className: tw("bg-cover object-cover", { "w-full": !props.imageWidth }),
3665
3668
  style: { width: props.imageWidth, height: props.imageHeight }
3666
3669
  }) : /* @__PURE__ */ React18.createElement(BannerImageSkeleton, null)), isDismissable && /* @__PURE__ */ React18.createElement(Banner.DismissContainer, {
3667
3670
  layout
@@ -3737,8 +3740,8 @@ var ActiveCrumb = asCrumb("span", "ActiveCrumb", { isActive: true });
3737
3740
  Breadcrumbs.Crumb = Crumb;
3738
3741
 
3739
3742
  // src/components/Card/Card.tsx
3740
- import React23 from "react";
3741
- import omit4 from "lodash/omit";
3743
+ import React25 from "react";
3744
+ import omit5 from "lodash/omit";
3742
3745
 
3743
3746
  // src/components/Chip/Chip.tsx
3744
3747
  import React21 from "react";
@@ -3850,7 +3853,7 @@ var ChipContainer = ({ dense, children }) => /* @__PURE__ */ React21.createEleme
3850
3853
  })
3851
3854
  }, React21.Children.map(
3852
3855
  children,
3853
- (child) => isComponentType(child, Chip2) || isComponentType(child, StatusChip) ? React21.cloneElement(child, { dense }) : void 0
3856
+ (child) => isComponentType(child, Chip2) || isComponentType(child, StatusChip) || isComponentType(child, ChipSkeleton) ? React21.cloneElement(child, { dense }) : void 0
3854
3857
  ));
3855
3858
 
3856
3859
  // src/components/Typography/Typography.tsx
@@ -3969,8 +3972,164 @@ Typography2.SmallTextBold = (_a) => {
3969
3972
  }));
3970
3973
  };
3971
3974
 
3975
+ // src/common/Card/Card.tsx
3976
+ import React23 from "react";
3977
+ var Card = (_a) => {
3978
+ var _b = _a, {
3979
+ disabled,
3980
+ fullWidth,
3981
+ clickable,
3982
+ className,
3983
+ children
3984
+ } = _b, rest = __objRest(_b, [
3985
+ "disabled",
3986
+ "fullWidth",
3987
+ "clickable",
3988
+ "className",
3989
+ "children"
3990
+ ]);
3991
+ return /* @__PURE__ */ React23.createElement("div", __spreadProps(__spreadValues({}, rest), {
3992
+ className: classNames(
3993
+ tw("border-grey-5 border-[1px] rounded-[2px] relative p-5 flex flex-col gap-5", {
3994
+ "w-[280px]": !fullWidth,
3995
+ "w-full min-w-[280px]": Boolean(fullWidth),
3996
+ "active:bg-grey-5 cursor-pointer hover:border-grey-50 focus:border-info-70": Boolean(clickable && !disabled),
3997
+ "bg-grey-0 cursor-not-allowed focus:border-transparent": Boolean(disabled)
3998
+ }),
3999
+ className
4000
+ )
4001
+ }), children);
4002
+ };
4003
+ var ColorHighlight = (_a) => {
4004
+ var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
4005
+ return /* @__PURE__ */ React23.createElement(Box, __spreadProps(__spreadValues({}, rest), {
4006
+ backgroundColor: color,
4007
+ className: classNames(tw("h-1 w-full absolute top-0 left-0 right-0"), className)
4008
+ }));
4009
+ };
4010
+ var ImageContainer = (_a) => {
4011
+ var _b = _a, { className, fullSize } = _b, rest = __objRest(_b, ["className", "fullSize"]);
4012
+ return /* @__PURE__ */ React23.createElement("div", __spreadProps(__spreadValues({}, rest), {
4013
+ className: classNames(
4014
+ tw("-mx-4", {
4015
+ "-mt-4": Boolean(fullSize)
4016
+ }),
4017
+ className
4018
+ )
4019
+ }));
4020
+ };
4021
+ var Image = ({
4022
+ image,
4023
+ imageAlt,
4024
+ fullSize
4025
+ }) => /* @__PURE__ */ React23.createElement("img", {
4026
+ src: image,
4027
+ alt: imageAlt,
4028
+ className: tw("w-full bg-cover object-cover h-[174px]", {
4029
+ "h-[225px]": Boolean(fullSize)
4030
+ })
4031
+ });
4032
+ var Content = (_a) => {
4033
+ var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
4034
+ return /* @__PURE__ */ React23.createElement("div", __spreadProps(__spreadValues({}, rest), {
4035
+ className: classNames(tw("flex flex-col", { "gap-4": !dense }), className)
4036
+ }));
4037
+ };
4038
+ var Actions = (_a) => {
4039
+ var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
4040
+ return /* @__PURE__ */ React23.createElement("div", __spreadProps(__spreadValues({}, rest), {
4041
+ className: classNames(tw("flex gap-3 items-center", { "pt-3 ": !dense }), className)
4042
+ }));
4043
+ };
4044
+ Card.Content = Content;
4045
+ Card.Actions = Actions;
4046
+ Card.ImageContainer = ImageContainer;
4047
+ Card.Image = Image;
4048
+ Card.ColorHiglight = ColorHighlight;
4049
+
4050
+ // src/components/Card/Compact.tsx
4051
+ import React24 from "react";
4052
+ import { omit as omit4 } from "lodash";
4053
+ var CompactCard = ({
4054
+ title,
4055
+ chips = [],
4056
+ icon,
4057
+ color,
4058
+ action,
4059
+ link,
4060
+ onClick,
4061
+ disabled,
4062
+ fullWidth,
4063
+ children
4064
+ }) => /* @__PURE__ */ React24.createElement(Card, {
4065
+ onClick: disabled ? void 0 : onClick,
4066
+ disabled,
4067
+ fullWidth,
4068
+ clickable: Boolean(onClick),
4069
+ tabIndex: onClick ? 0 : -1
4070
+ }, color && /* @__PURE__ */ React24.createElement(Card.ColorHiglight, {
4071
+ color
4072
+ }), chips.length > 0 && /* @__PURE__ */ React24.createElement(ChipContainer, {
4073
+ dense: true
4074
+ }, chips.map((chip) => /* @__PURE__ */ React24.createElement(Chip2, {
4075
+ key: chip,
4076
+ text: chip
4077
+ }))), /* @__PURE__ */ React24.createElement(Box, {
4078
+ display: "flex",
4079
+ gap: "5"
4080
+ }, icon && /* @__PURE__ */ React24.createElement(Avatar, {
4081
+ image: icon
4082
+ }), /* @__PURE__ */ React24.createElement(Card.Content, {
4083
+ dense: true
4084
+ }, /* @__PURE__ */ React24.createElement(Typography2.SmallStrong, {
4085
+ color: "black"
4086
+ }, title), /* @__PURE__ */ React24.createElement(Typography2.Caption, {
4087
+ color: "grey-70"
4088
+ }, children))), (action || link) && /* @__PURE__ */ React24.createElement(Card.Actions, {
4089
+ dense: true
4090
+ }, action && /* @__PURE__ */ React24.createElement(SecondaryButton, __spreadValues({
4091
+ dense: true
4092
+ }, omit4(action, "text")), action.text), link && /* @__PURE__ */ React24.createElement(ExternalLinkButton, __spreadValues({
4093
+ dense: true,
4094
+ kind: "ghost"
4095
+ }, omit4(link, "text")), link.text)));
4096
+ var CompactSkeleton = ({
4097
+ chips = true,
4098
+ icon = true,
4099
+ actions = true,
4100
+ fullWidth = false
4101
+ }) => /* @__PURE__ */ React24.createElement(Card, {
4102
+ fullWidth
4103
+ }, chips && /* @__PURE__ */ React24.createElement(ChipContainer, {
4104
+ dense: true
4105
+ }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React24.createElement(Chip2.Skeleton, {
4106
+ key: idx
4107
+ }))), /* @__PURE__ */ React24.createElement(Box, {
4108
+ display: "flex",
4109
+ gap: "5"
4110
+ }, icon && /* @__PURE__ */ React24.createElement(Avatar.Skeleton, null), /* @__PURE__ */ React24.createElement(Card.Content, {
4111
+ dense: true
4112
+ }, /* @__PURE__ */ React24.createElement(Skeleton, {
4113
+ width: 80,
4114
+ height: 20
4115
+ }), /* @__PURE__ */ React24.createElement(Box, {
4116
+ height: "1"
4117
+ }), /* @__PURE__ */ React24.createElement(Skeleton, {
4118
+ width: 145,
4119
+ height: 16
4120
+ }))), actions && /* @__PURE__ */ React24.createElement(Card.Actions, {
4121
+ dense: true
4122
+ }, /* @__PURE__ */ React24.createElement(Skeleton, {
4123
+ width: 115,
4124
+ height: 25
4125
+ }), /* @__PURE__ */ React24.createElement(Skeleton, {
4126
+ width: 60,
4127
+ height: 25
4128
+ })));
4129
+ CompactCard.Skeleton = CompactSkeleton;
4130
+
3972
4131
  // src/components/Card/Card.tsx
3973
- var Card = ({
4132
+ var Card2 = ({
3974
4133
  title,
3975
4134
  description,
3976
4135
  chips = [],
@@ -3984,127 +4143,84 @@ var Card = ({
3984
4143
  disabled,
3985
4144
  fullWidth,
3986
4145
  children
3987
- }) => /* @__PURE__ */ React23.createElement(CardContainer, {
3988
- onClick,
3989
- color,
4146
+ }) => /* @__PURE__ */ React25.createElement(Card, {
4147
+ onClick: disabled ? void 0 : onClick,
3990
4148
  disabled,
3991
- fullWidth
3992
- }, chips.length > 0 && /* @__PURE__ */ React23.createElement(ChipContainer, {
4149
+ fullWidth,
4150
+ clickable: Boolean(onClick),
4151
+ tabIndex: onClick ? 0 : -1
4152
+ }, color && /* @__PURE__ */ React25.createElement(Card.ColorHiglight, {
4153
+ color
4154
+ }), chips.length > 0 && /* @__PURE__ */ React25.createElement(ChipContainer, {
3993
4155
  dense: true
3994
- }, chips.map((chip) => /* @__PURE__ */ React23.createElement(Chip2, {
4156
+ }, chips.map((chip) => /* @__PURE__ */ React25.createElement(Chip2, {
3995
4157
  key: chip,
3996
4158
  text: chip
3997
- }))), icons.length > 0 && /* @__PURE__ */ React23.createElement(AvatarStack, {
4159
+ }))), icons.length > 0 && /* @__PURE__ */ React25.createElement(AvatarStack, {
3998
4160
  images: icons
3999
- }), image !== void 0 && /* @__PURE__ */ React23.createElement(CardImage, {
4161
+ }), image !== void 0 && /* @__PURE__ */ React25.createElement(CardImage, {
4000
4162
  image,
4001
4163
  imageAlt,
4002
4164
  fullSize: chips.length === 0
4003
- }), /* @__PURE__ */ React23.createElement(CardContent, null, /* @__PURE__ */ React23.createElement(CardTitle, null, title), /* @__PURE__ */ React23.createElement(CardBody, null, children || description)), (action || link) && /* @__PURE__ */ React23.createElement(CardActions, null, action && /* @__PURE__ */ React23.createElement(SecondaryButton, __spreadValues({
4165
+ }), /* @__PURE__ */ React25.createElement(Card.Content, null, /* @__PURE__ */ React25.createElement(Typography2.DefaultStrong, {
4166
+ color: "black"
4167
+ }, title), /* @__PURE__ */ React25.createElement(Typography2.Caption, {
4168
+ color: "grey-70"
4169
+ }, children || description)), (action || link) && /* @__PURE__ */ React25.createElement(Card.Actions, null, action && /* @__PURE__ */ React25.createElement(SecondaryButton, __spreadValues({
4004
4170
  dense: true
4005
- }, omit4(action, "text")), action.text), link && /* @__PURE__ */ React23.createElement(ExternalLinkButton, __spreadValues({
4171
+ }, omit5(action, "text")), action.text), link && /* @__PURE__ */ React25.createElement(ExternalLinkButton, __spreadValues({
4006
4172
  dense: true,
4007
4173
  kind: "ghost"
4008
- }, omit4(link, "text")), link.text)));
4174
+ }, omit5(link, "text")), link.text)));
4009
4175
  var CardSkeleton = ({
4010
4176
  chips = true,
4011
4177
  icons = false,
4012
4178
  image = !icons,
4013
4179
  actions = true,
4014
4180
  fullWidth = false
4015
- }) => /* @__PURE__ */ React23.createElement(CardContainer, {
4181
+ }) => /* @__PURE__ */ React25.createElement(Card, {
4016
4182
  fullWidth
4017
- }, chips && /* @__PURE__ */ React23.createElement(ChipContainer, {
4183
+ }, chips && /* @__PURE__ */ React25.createElement(ChipContainer, {
4018
4184
  dense: true
4019
- }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React23.createElement(Chip2.Skeleton, {
4185
+ }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React25.createElement(Chip2.Skeleton, {
4020
4186
  key: idx
4021
- }))), icons && /* @__PURE__ */ React23.createElement(AvatarStack, {
4187
+ }))), icons && /* @__PURE__ */ React25.createElement(AvatarStack, {
4022
4188
  images: [null]
4023
- }), image && /* @__PURE__ */ React23.createElement(CardImage, {
4189
+ }), image && /* @__PURE__ */ React25.createElement(CardImage, {
4024
4190
  image: null,
4025
4191
  fullSize: !chips
4026
- }), /* @__PURE__ */ React23.createElement(CardContent, null, /* @__PURE__ */ React23.createElement(Skeleton, {
4192
+ }), /* @__PURE__ */ React25.createElement(Card.Content, null, /* @__PURE__ */ React25.createElement(Skeleton, {
4027
4193
  width: 145,
4028
4194
  height: 25
4029
- }), /* @__PURE__ */ React23.createElement(Skeleton, {
4195
+ }), /* @__PURE__ */ React25.createElement(Skeleton, {
4030
4196
  width: 145,
4031
4197
  height: 16
4032
- })), actions && /* @__PURE__ */ React23.createElement(CardActions, null, /* @__PURE__ */ React23.createElement(Skeleton, {
4198
+ })), actions && /* @__PURE__ */ React25.createElement(Card.Actions, null, /* @__PURE__ */ React25.createElement(Skeleton, {
4033
4199
  width: 115,
4034
4200
  height: 25
4035
- }), /* @__PURE__ */ React23.createElement(Skeleton, {
4201
+ }), /* @__PURE__ */ React25.createElement(Skeleton, {
4036
4202
  width: 60,
4037
4203
  height: 25
4038
4204
  })));
4039
- Card.Skeleton = CardSkeleton;
4040
- var CardContainer = ({
4041
- children,
4042
- onClick,
4043
- color,
4044
- disabled,
4045
- fullWidth = false
4046
- }) => /* @__PURE__ */ React23.createElement(Box, {
4047
- borderWidth: 1,
4048
- borderRadius: 2,
4049
- className: classNames(
4050
- tw("border-grey-5", {
4051
- "w-[280px]": !fullWidth,
4052
- "w-full min-w-[280px]": fullWidth,
4053
- "active:bg-grey-5 cursor-pointer hover:border-grey-50 focus:border-info-70": Boolean(onClick && !disabled),
4054
- "bg-grey-0 cursor-not-allowed focus:border-transparent": Boolean(disabled)
4055
- })
4056
- ),
4057
- onClick: disabled ? void 0 : onClick,
4058
- tabIndex: onClick ? 0 : -1,
4059
- disabled
4060
- }, color && /* @__PURE__ */ React23.createElement(Box, {
4061
- backgroundColor: color,
4062
- height: "1",
4063
- width: "full"
4064
- }), /* @__PURE__ */ React23.createElement(Box, {
4065
- padding: "5",
4066
- display: "flex",
4067
- flexDirection: "column",
4068
- gap: "5"
4069
- }, children));
4070
- var CardImage = ({ image, imageAlt, fullSize }) => /* @__PURE__ */ React23.createElement(Box, {
4071
- marginX: "-4",
4072
- marginTop: fullSize ? "-4" : void 0
4073
- }, image ? /* @__PURE__ */ React23.createElement("img", {
4074
- src: image,
4075
- alt: imageAlt,
4076
- className: tw("w-full bg-cover object-cover h-[174px]", {
4077
- "h-[225px]": fullSize
4078
- })
4079
- }) : /* @__PURE__ */ React23.createElement(CardImage.Skeleton, {
4205
+ Card2.Skeleton = CardSkeleton;
4206
+ Card2.Compact = CompactCard;
4207
+ var CardImage = ({ image, imageAlt, fullSize }) => /* @__PURE__ */ React25.createElement(Card.ImageContainer, {
4208
+ fullSize
4209
+ }, image ? /* @__PURE__ */ React25.createElement(Card.Image, {
4210
+ image,
4211
+ imageAlt,
4212
+ fullSize
4213
+ }) : /* @__PURE__ */ React25.createElement(CardImage.Skeleton, {
4080
4214
  fullSize
4081
4215
  }));
4082
- var CardImageSkeleton = ({ fullSize }) => /* @__PURE__ */ React23.createElement(Skeleton, {
4216
+ var CardImageSkeleton = ({ fullSize }) => /* @__PURE__ */ React25.createElement(Skeleton, {
4083
4217
  height: fullSize ? 225 : 174,
4084
- className: tw("w-full")
4218
+ width: "100%"
4085
4219
  });
4086
4220
  CardImage.Skeleton = CardImageSkeleton;
4087
- var CardContent = ({ children }) => /* @__PURE__ */ React23.createElement(Box, {
4088
- display: "flex",
4089
- flexDirection: "column",
4090
- gap: "4"
4091
- }, children);
4092
- var CardBody = ({ children }) => /* @__PURE__ */ React23.createElement(Typography2, {
4093
- variant: "caption",
4094
- color: "grey-70"
4095
- }, children);
4096
- var CardTitle = ({ children }) => /* @__PURE__ */ React23.createElement(Typography2, {
4097
- variant: "default-strong"
4098
- }, children);
4099
- var CardActions = ({ children }) => /* @__PURE__ */ React23.createElement(Box, {
4100
- paddingTop: "3",
4101
- display: "flex",
4102
- gap: "3",
4103
- alignItems: "center"
4104
- }, children);
4105
4221
 
4106
4222
  // src/components/Carousel/Carousel.tsx
4107
- import React24, { useEffect as useEffect3, useLayoutEffect, useRef as useRef2, useState as useState2 } from "react";
4223
+ import React26, { useEffect as useEffect3, useLayoutEffect, useRef as useRef2, useState as useState2 } from "react";
4108
4224
  var import_chevronLeft = __toESM(require_chevronLeft());
4109
4225
  var import_chevronRight = __toESM(require_chevronRight());
4110
4226
  var Carousel = ({
@@ -4115,7 +4231,7 @@ var Carousel = ({
4115
4231
  }) => {
4116
4232
  const containerRef = useRef2(null);
4117
4233
  const scrollbarContainerRef = useRef2(null);
4118
- const items = React24.Children.toArray(children);
4234
+ const items = React26.Children.toArray(children);
4119
4235
  const [width, setWidth] = useState2(0);
4120
4236
  const [isUpdating, setIsUpdating] = useState2(false);
4121
4237
  const [currentPage, setCurrentPage] = useState2(currentPageProp != null ? currentPageProp : defaultPage);
@@ -4124,7 +4240,7 @@ var Carousel = ({
4124
4240
  var _a;
4125
4241
  const containerWidth = (_a = containerRef.current) == null ? void 0 : _a.getBoundingClientRect().width;
4126
4242
  if (containerWidth !== void 0 && width !== containerWidth) {
4127
- setWidth(containerWidth);
4243
+ setWidth(Math.round(containerWidth));
4128
4244
  }
4129
4245
  };
4130
4246
  updateContainerWidth();
@@ -4165,30 +4281,30 @@ var Carousel = ({
4165
4281
  onPageChange && onPageChange(newPage);
4166
4282
  }
4167
4283
  };
4168
- return items.length > 0 ? /* @__PURE__ */ React24.createElement("div", {
4284
+ return items.length > 0 ? /* @__PURE__ */ React26.createElement("div", {
4169
4285
  className: tw("w-full flex flex-col"),
4170
4286
  ref: containerRef
4171
- }, containerRef !== null && /* @__PURE__ */ React24.createElement("ul", {
4287
+ }, containerRef !== null && /* @__PURE__ */ React26.createElement("ul", {
4172
4288
  ref: scrollbarContainerRef,
4173
4289
  tabIndex: 0,
4174
4290
  onScroll: handleScroll,
4175
4291
  className: tw(
4176
4292
  "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"
4177
4293
  )
4178
- }, width !== 0 && React24.Children.map(children, (child, index) => /* @__PURE__ */ React24.createElement(CarouselItem, {
4294
+ }, width !== 0 && React26.Children.map(children, (child, index) => /* @__PURE__ */ React26.createElement(CarouselItem, {
4179
4295
  key: index,
4180
4296
  width,
4181
4297
  ariaHidden: index + 1 === currentPage ? void 0 : true
4182
- }, child))), /* @__PURE__ */ React24.createElement(Flexbox, {
4298
+ }, child))), /* @__PURE__ */ React26.createElement(Flexbox, {
4183
4299
  direction: "row",
4184
4300
  justifyContent: "flex-end",
4185
4301
  alignItems: "center"
4186
- }, /* @__PURE__ */ React24.createElement(IconButton, {
4302
+ }, /* @__PURE__ */ React26.createElement(IconButton, {
4187
4303
  "aria-label": "Previous",
4188
4304
  onClick: () => handleNavigationClick("left"),
4189
4305
  icon: import_chevronLeft.default,
4190
4306
  disabled: currentPage === 1
4191
- }), /* @__PURE__ */ React24.createElement(Typography2.Caption, null, `${currentPage}/${React24.Children.count(children)}`), /* @__PURE__ */ React24.createElement(IconButton, {
4307
+ }), /* @__PURE__ */ React26.createElement(Typography2.Caption, null, `${currentPage}/${React26.Children.count(children)}`), /* @__PURE__ */ React26.createElement(IconButton, {
4192
4308
  "aria-label": "Next",
4193
4309
  onClick: () => handleNavigationClick("right"),
4194
4310
  icon: import_chevronRight.default,
@@ -4196,7 +4312,7 @@ var Carousel = ({
4196
4312
  }))) : null;
4197
4313
  };
4198
4314
  var CarouselItem = ({ width, children, ariaHidden }) => {
4199
- return /* @__PURE__ */ React24.createElement("li", {
4315
+ return /* @__PURE__ */ React26.createElement("li", {
4200
4316
  style: { width },
4201
4317
  "aria-hidden": ariaHidden,
4202
4318
  className: tw("flex justify-center snap-start")
@@ -4204,10 +4320,10 @@ var CarouselItem = ({ width, children, ariaHidden }) => {
4204
4320
  };
4205
4321
 
4206
4322
  // src/components/Checkbox/Checkbox.tsx
4207
- import React27 from "react";
4323
+ import React29 from "react";
4208
4324
 
4209
4325
  // src/components/ControlLabel/ControlLabel.tsx
4210
- import React25 from "react";
4326
+ import React27 from "react";
4211
4327
  var ControlLabel = (_a) => {
4212
4328
  var _b = _a, {
4213
4329
  label,
@@ -4225,7 +4341,7 @@ var ControlLabel = (_a) => {
4225
4341
  "style"
4226
4342
  ]);
4227
4343
  const textClass = disabled ? "text-grey-40" : "text-grey-100";
4228
- return /* @__PURE__ */ React25.createElement("label", __spreadValues({
4344
+ return /* @__PURE__ */ React27.createElement("label", __spreadValues({
4229
4345
  className: tw(
4230
4346
  "inline-grid grid-cols-[auto_1fr]",
4231
4347
  {
@@ -4235,9 +4351,9 @@ var ControlLabel = (_a) => {
4235
4351
  textClass
4236
4352
  ),
4237
4353
  style: __spreadValues({}, style)
4238
- }, rest), children, label && /* @__PURE__ */ React25.createElement("span", {
4354
+ }, rest), children, label && /* @__PURE__ */ React27.createElement("span", {
4239
4355
  className: tw("typography-small self-center")
4240
- }, label), caption && /* @__PURE__ */ React25.createElement(Typography2, {
4356
+ }, label), caption && /* @__PURE__ */ React27.createElement(Typography2, {
4241
4357
  className: tw("col-start-2"),
4242
4358
  variant: "caption",
4243
4359
  color: disabled ? "grey-40" : "grey-50"
@@ -4245,34 +4361,43 @@ var ControlLabel = (_a) => {
4245
4361
  };
4246
4362
 
4247
4363
  // src/common/Checkbox/Checkbox.tsx
4248
- import React26 from "react";
4364
+ import React28 from "react";
4249
4365
  var import_minus = __toESM(require_minus());
4250
4366
  var import_tick2 = __toESM(require_tick());
4251
- var Checkbox = React26.forwardRef(
4367
+ var Checkbox = React28.forwardRef(
4252
4368
  (_a, ref) => {
4253
4369
  var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
4254
- return /* @__PURE__ */ React26.createElement("span", {
4255
- className: tw("inline-flex justify-center items-center self-center")
4256
- }, /* @__PURE__ */ React26.createElement("input", __spreadProps(__spreadValues({
4370
+ return /* @__PURE__ */ React28.createElement("span", {
4371
+ className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
4372
+ "hover:border-grey-50 peer-checked:border-navyBlue-100": !disabled,
4373
+ "border-grey-5": disabled
4374
+ })
4375
+ }, /* @__PURE__ */ React28.createElement("input", __spreadProps(__spreadValues({
4257
4376
  id,
4258
4377
  ref,
4259
4378
  type: "checkbox",
4260
4379
  name
4261
4380
  }, props), {
4262
- className: tw("opacity-0 peer w-0 h-0"),
4381
+ className: classNames(
4382
+ tw("peer appearance-none outline-none w-5 h-5", "rounded-sm border border-transparent", {
4383
+ "cursor-pointer checked:bg-navyBlue-100": !disabled,
4384
+ "cursor-not-allowed bg-grey-0": disabled
4385
+ })
4386
+ ),
4263
4387
  readOnly,
4264
4388
  disabled
4265
- })), /* @__PURE__ */ React26.createElement(Icon, {
4389
+ })), /* @__PURE__ */ React28.createElement(Icon, {
4266
4390
  icon: indeterminate ? import_minus.default : import_tick2.default,
4267
4391
  className: classNames(
4268
4392
  tw(
4269
- "rounded-sm border peer w-5 h-5 p-[3px] pointer-events-none cursor-pointer peer-disabled:cursor-not-allowed",
4270
- "border-grey-20 peer-focus:border-info-70 peer-disabled:border-grey-5 peer-checked:border-navyBlue-100",
4271
- "text-transparent peer-checked:[&>path]:stroke-2 peer-checked:text-white peer-checked:[&>path]:stroke-white"
4393
+ "absolute top-0 right-0",
4394
+ "pointer-events-none p-[2px] w-5 h-5",
4395
+ "text-transparent [&>path]:stroke-transparent",
4396
+ "rounded-sm border border-grey-20 peer-focus:border-info-70"
4272
4397
  ),
4273
4398
  {
4274
- "peer-checked:bg-navyBlue-100 peer-hover:border-grey-50": !disabled,
4275
- "peer-checked:bg-gray-0 peer-checked:text-grey-30 peer-checked:[&>path]:stroke-grey-30": disabled
4399
+ "peer-hover:border-grey-50 peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-navyBlue-100": !disabled,
4400
+ "border-grey-5 peer-checked:text-grey-30 peer-checked:[&>path]:stroke-grey-30": disabled
4276
4401
  }
4277
4402
  )
4278
4403
  }));
@@ -4280,12 +4405,12 @@ var Checkbox = React26.forwardRef(
4280
4405
  );
4281
4406
 
4282
4407
  // src/components/Checkbox/Checkbox.tsx
4283
- var Checkbox2 = React27.forwardRef(
4408
+ var Checkbox2 = React29.forwardRef(
4284
4409
  (_a, ref) => {
4285
4410
  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"]);
4286
4411
  var _a2;
4287
4412
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
4288
- return !readOnly || isChecked ? /* @__PURE__ */ React27.createElement(ControlLabel, {
4413
+ return !readOnly || isChecked ? /* @__PURE__ */ React29.createElement(ControlLabel, {
4289
4414
  htmlFor: id,
4290
4415
  label: children,
4291
4416
  "aria-label": ariaLabel,
@@ -4293,7 +4418,7 @@ var Checkbox2 = React27.forwardRef(
4293
4418
  readOnly,
4294
4419
  disabled,
4295
4420
  style: { gap: "0 8px" }
4296
- }, !readOnly && /* @__PURE__ */ React27.createElement(Checkbox, __spreadProps(__spreadValues({
4421
+ }, !readOnly && /* @__PURE__ */ React29.createElement(Checkbox, __spreadProps(__spreadValues({
4297
4422
  id,
4298
4423
  ref,
4299
4424
  name
@@ -4303,26 +4428,26 @@ var Checkbox2 = React27.forwardRef(
4303
4428
  }))) : null;
4304
4429
  }
4305
4430
  );
4306
- var CheckboxSkeleton = () => /* @__PURE__ */ React27.createElement("div", {
4431
+ var CheckboxSkeleton = () => /* @__PURE__ */ React29.createElement("div", {
4307
4432
  className: tw("flex gap-3")
4308
- }, /* @__PURE__ */ React27.createElement(Skeleton, {
4433
+ }, /* @__PURE__ */ React29.createElement(Skeleton, {
4309
4434
  height: 20,
4310
4435
  width: 20
4311
- }), /* @__PURE__ */ React27.createElement(Skeleton, {
4436
+ }), /* @__PURE__ */ React29.createElement(Skeleton, {
4312
4437
  height: 20,
4313
4438
  width: 150
4314
4439
  }));
4315
4440
  Checkbox2.Skeleton = CheckboxSkeleton;
4316
4441
 
4317
4442
  // src/components/CheckboxGroup/CheckboxGroup.tsx
4318
- import React34, { useState as useState3 } from "react";
4443
+ import React36, { useState as useState3 } from "react";
4319
4444
  import uniqueId from "lodash/uniqueId";
4320
4445
 
4321
4446
  // src/common/InputGroup/InputGroup.tsx
4322
- import React29 from "react";
4447
+ import React31 from "react";
4323
4448
 
4324
4449
  // src/components/Grid/Grid.tsx
4325
- import React28 from "react";
4450
+ import React30 from "react";
4326
4451
  var Grid = Tailwindify(
4327
4452
  ({
4328
4453
  htmlTag = "div",
@@ -4375,7 +4500,7 @@ var Grid = Tailwindify(
4375
4500
  gridRowEnd: rowEnd
4376
4501
  });
4377
4502
  const HtmlElement = htmlTag;
4378
- return /* @__PURE__ */ React28.createElement(HtmlElement, {
4503
+ return /* @__PURE__ */ React30.createElement(HtmlElement, {
4379
4504
  style: __spreadValues(__spreadValues({}, hookStyle), style),
4380
4505
  className
4381
4506
  }, children);
@@ -4391,7 +4516,7 @@ var gridColumnStyles = {
4391
4516
  };
4392
4517
  var InputGroup = (_a) => {
4393
4518
  var _b = _a, { cols = "1", children } = _b, rest = __objRest(_b, ["cols", "children"]);
4394
- return /* @__PURE__ */ React29.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
4519
+ return /* @__PURE__ */ React31.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
4395
4520
  display: "inline-grid",
4396
4521
  colGap: "l4",
4397
4522
  rowGap: "3",
@@ -4401,12 +4526,12 @@ var InputGroup = (_a) => {
4401
4526
  };
4402
4527
 
4403
4528
  // src/utils/form/Label/Label.tsx
4404
- import React33 from "react";
4529
+ import React35 from "react";
4405
4530
 
4406
4531
  // src/utils/form/FormControl/FormControl.tsx
4407
- import React30 from "react";
4532
+ import React32 from "react";
4408
4533
  var FormControl = ({ className, inline, children }) => {
4409
- return /* @__PURE__ */ React30.createElement(Flexbox, {
4534
+ return /* @__PURE__ */ React32.createElement(Flexbox, {
4410
4535
  direction: "column",
4411
4536
  display: inline ? "inline-flex" : "flex",
4412
4537
  className
@@ -4414,14 +4539,14 @@ var FormControl = ({ className, inline, children }) => {
4414
4539
  };
4415
4540
 
4416
4541
  // src/utils/form/HelperText/HelperText.tsx
4417
- import React32 from "react";
4542
+ import React34 from "react";
4418
4543
  import classNames3 from "classnames";
4419
4544
  import isNumber3 from "lodash/isNumber";
4420
4545
 
4421
4546
  // src/utils/form/CharCounter/CharCounter.tsx
4422
- import React31 from "react";
4547
+ import React33 from "react";
4423
4548
  var CharCounter = ({ dense = true, length, maxLength, valid = true }) => {
4424
- return /* @__PURE__ */ React31.createElement("span", {
4549
+ return /* @__PURE__ */ React33.createElement("span", {
4425
4550
  className: tw(
4426
4551
  `whitespace-nowrap`,
4427
4552
  valid ? "text-grey-50" : "text-error-70",
@@ -4443,34 +4568,34 @@ var HelperText = ({
4443
4568
  const hasMaxLength = isNumber3(maxLength) && maxLength > 0;
4444
4569
  const showMessage = hasError || hasMaxLength;
4445
4570
  if (!showMessage) {
4446
- return reserveSpaceForError ? /* @__PURE__ */ React32.createElement("p", {
4571
+ return reserveSpaceForError ? /* @__PURE__ */ React34.createElement("p", {
4447
4572
  className: tw("block mt-1 mb-3 typography-caption")
4448
4573
  }, "\xA0") : null;
4449
4574
  }
4450
- return /* @__PURE__ */ React32.createElement(Grid, {
4575
+ return /* @__PURE__ */ React34.createElement(Grid, {
4451
4576
  cols: "1",
4452
4577
  rows: "1",
4453
4578
  colGap: "3",
4454
4579
  alignItems: "start",
4455
4580
  autoCols: "min",
4456
4581
  className: tw("mt-1 mb-3")
4457
- }, /* @__PURE__ */ React32.createElement(GridItem, {
4582
+ }, /* @__PURE__ */ React34.createElement(GridItem, {
4458
4583
  colStart: "1",
4459
4584
  colEnd: "2"
4460
- }, hasError && /* @__PURE__ */ React32.createElement("p", {
4585
+ }, hasError && /* @__PURE__ */ React34.createElement("p", {
4461
4586
  id: messageId,
4462
4587
  className: tw("text-error-50 block typography-caption")
4463
- }, helperText)), /* @__PURE__ */ React32.createElement(GridItem, {
4588
+ }, helperText)), /* @__PURE__ */ React34.createElement(GridItem, {
4464
4589
  colStart: "2",
4465
4590
  colEnd: "3",
4466
4591
  display: "flex"
4467
- }, isNumber3(length) && hasMaxLength && /* @__PURE__ */ React32.createElement(CharCounter, {
4592
+ }, isNumber3(length) && hasMaxLength && /* @__PURE__ */ React34.createElement(CharCounter, {
4468
4593
  length,
4469
4594
  maxLength,
4470
4595
  valid: !error2
4471
4596
  })));
4472
4597
  };
4473
- var Skeleton2 = ({ className, children }) => /* @__PURE__ */ React32.createElement("div", {
4598
+ var Skeleton2 = ({ className, children }) => /* @__PURE__ */ React34.createElement("div", {
4474
4599
  className: classNames3(className, "h-[25px]")
4475
4600
  }, children);
4476
4601
  HelperText.Skeleton = Skeleton2;
@@ -4484,35 +4609,35 @@ var LabelText = ({
4484
4609
  helpTooltip,
4485
4610
  helpTooltipPlacement
4486
4611
  }) => {
4487
- return /* @__PURE__ */ React33.createElement("span", {
4612
+ return /* @__PURE__ */ React35.createElement("span", {
4488
4613
  className: tw("inline-block mb-2 typography-small-strong", {
4489
4614
  "text-grey-60": variant === "default",
4490
4615
  "text-error-50": variant === "error",
4491
4616
  "text-grey-40": variant === "disabled"
4492
4617
  })
4493
- }, labelText, required && /* @__PURE__ */ React33.createElement("span", {
4618
+ }, labelText, required && /* @__PURE__ */ React35.createElement("span", {
4494
4619
  className: tw("text-error-50")
4495
- }, "*"), helpTooltip && /* @__PURE__ */ React33.createElement(Tooltip, {
4620
+ }, "*"), helpTooltip && /* @__PURE__ */ React35.createElement(Tooltip, {
4496
4621
  content: helpTooltip,
4497
4622
  placement: helpTooltipPlacement
4498
- }, /* @__PURE__ */ React33.createElement("span", {
4623
+ }, /* @__PURE__ */ React35.createElement("span", {
4499
4624
  className: tw("text-grey-30 flex items-center cursor-pointer ml-2")
4500
- }, /* @__PURE__ */ React33.createElement(InlineIcon, {
4625
+ }, /* @__PURE__ */ React35.createElement(InlineIcon, {
4501
4626
  icon: import_questionMark.default,
4502
4627
  "data-testid": "icon-info"
4503
4628
  }))));
4504
4629
  };
4505
4630
  var Label = (props) => {
4506
4631
  const _a = props, { id, htmlFor, labelText, labelProps: _b = {} } = _a, labelProps = __objRest(_b, []), { "data-testid": dataTestid, children } = _a;
4507
- return /* @__PURE__ */ React33.createElement("label", __spreadValues({
4632
+ return /* @__PURE__ */ React35.createElement("label", __spreadValues({
4508
4633
  id,
4509
4634
  className: tw("w-full"),
4510
4635
  "data-testid": dataTestid,
4511
4636
  htmlFor
4512
- }, labelProps), labelText && /* @__PURE__ */ React33.createElement(LabelText, __spreadValues({}, props)), children);
4637
+ }, labelProps), labelText && /* @__PURE__ */ React35.createElement(LabelText, __spreadValues({}, props)), children);
4513
4638
  };
4514
4639
  var LabelSkeleton = () => {
4515
- return /* @__PURE__ */ React33.createElement(Skeleton, {
4640
+ return /* @__PURE__ */ React35.createElement(Skeleton, {
4516
4641
  height: 20,
4517
4642
  width: 100,
4518
4643
  className: tw("mb-[7px]")
@@ -4545,15 +4670,15 @@ var LabelControl = (_a) => {
4545
4670
  ]);
4546
4671
  const legacyError = error2 !== void 0 && valid === false;
4547
4672
  const variant = !valid || legacyError ? "error" : disabled ? "disabled" : "default";
4548
- return /* @__PURE__ */ React33.createElement(FormControl, null, !fieldset && /* @__PURE__ */ React33.createElement(Label, __spreadProps(__spreadValues({}, rest), {
4673
+ return /* @__PURE__ */ React35.createElement(FormControl, null, !fieldset && /* @__PURE__ */ React35.createElement(Label, __spreadProps(__spreadValues({}, rest), {
4549
4674
  variant
4550
- }), children), fieldset && /* @__PURE__ */ React33.createElement("fieldset", {
4675
+ }), children), fieldset && /* @__PURE__ */ React35.createElement("fieldset", {
4551
4676
  id: rest.id
4552
- }, /* @__PURE__ */ React33.createElement("legend", {
4677
+ }, /* @__PURE__ */ React35.createElement("legend", {
4553
4678
  className: tw("w-full mb-2")
4554
- }, /* @__PURE__ */ React33.createElement(LabelText, __spreadProps(__spreadValues({}, rest), {
4679
+ }, /* @__PURE__ */ React35.createElement(LabelText, __spreadProps(__spreadValues({}, rest), {
4555
4680
  variant
4556
- }))), children), /* @__PURE__ */ React33.createElement(HelperText, {
4681
+ }))), children), /* @__PURE__ */ React35.createElement(HelperText, {
4557
4682
  messageId,
4558
4683
  error: !valid,
4559
4684
  helperText,
@@ -4562,7 +4687,7 @@ var LabelControl = (_a) => {
4562
4687
  reserveSpaceForError
4563
4688
  }));
4564
4689
  };
4565
- var LabelControlSkeleton = ({ children }) => /* @__PURE__ */ React33.createElement("div", null, /* @__PURE__ */ React33.createElement(Label.Skeleton, null), children, /* @__PURE__ */ React33.createElement(HelperText.Skeleton, null));
4690
+ var LabelControlSkeleton = ({ children }) => /* @__PURE__ */ React35.createElement("div", null, /* @__PURE__ */ React35.createElement(Label.Skeleton, null), children, /* @__PURE__ */ React35.createElement(HelperText.Skeleton, null));
4566
4691
  LabelControl.Skeleton = LabelControlSkeleton;
4567
4692
  var getLabelControlProps = (_a) => {
4568
4693
  var _b = _a, {
@@ -4598,7 +4723,7 @@ var getLabelControlProps = (_a) => {
4598
4723
 
4599
4724
  // src/components/CheckboxGroup/CheckboxGroup.tsx
4600
4725
  var isCheckbox = (c) => {
4601
- return React34.isValidElement(c) && c.type === Checkbox2;
4726
+ return React36.isValidElement(c) && c.type === Checkbox2;
4602
4727
  };
4603
4728
  var CheckboxGroup = (_a) => {
4604
4729
  var _b = _a, {
@@ -4630,11 +4755,11 @@ var CheckboxGroup = (_a) => {
4630
4755
  setSelectedItems(updated);
4631
4756
  onChange == null ? void 0 : onChange(updated);
4632
4757
  };
4633
- return /* @__PURE__ */ React34.createElement(LabelControl, __spreadValues(__spreadValues({
4758
+ return /* @__PURE__ */ React36.createElement(LabelControl, __spreadValues(__spreadValues({
4634
4759
  fieldset: true
4635
- }, labelControlProps), errorProps), /* @__PURE__ */ React34.createElement(InputGroup, {
4760
+ }, labelControlProps), errorProps), /* @__PURE__ */ React36.createElement(InputGroup, {
4636
4761
  cols
4637
- }, React34.Children.map(children, (c) => {
4762
+ }, React36.Children.map(children, (c) => {
4638
4763
  var _a3, _b2;
4639
4764
  if (!isCheckbox(c)) {
4640
4765
  return null;
@@ -4642,7 +4767,7 @@ var CheckboxGroup = (_a) => {
4642
4767
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
4643
4768
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
4644
4769
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
4645
- return React34.cloneElement(c, {
4770
+ return React36.cloneElement(c, {
4646
4771
  defaultChecked,
4647
4772
  checked,
4648
4773
  onChange: (_b2 = c.props.onChange) != null ? _b2 : handleChange,
@@ -4652,16 +4777,16 @@ var CheckboxGroup = (_a) => {
4652
4777
  })));
4653
4778
  };
4654
4779
  var CheckboxGroupSkeleton = ({ options = 2 }) => {
4655
- return /* @__PURE__ */ React34.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React34.createElement("div", {
4780
+ return /* @__PURE__ */ React36.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React36.createElement("div", {
4656
4781
  className: tw("flex flex-wrap flex-col gap-2")
4657
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React34.createElement(Checkbox2.Skeleton, {
4782
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React36.createElement(Checkbox2.Skeleton, {
4658
4783
  key
4659
4784
  }))));
4660
4785
  };
4661
4786
  CheckboxGroup.Skeleton = CheckboxGroupSkeleton;
4662
4787
 
4663
4788
  // src/components/ChoiceChip/ChoiceChip.tsx
4664
- import React35, { useState as useState4 } from "react";
4789
+ import React37, { useState as useState4 } from "react";
4665
4790
  var ChoiceChip = (_a) => {
4666
4791
  var _b = _a, { text, dense, defaultValue, value, onChange } = _b, rest = __objRest(_b, ["text", "dense", "defaultValue", "value", "onChange"]);
4667
4792
  var _a2;
@@ -4675,7 +4800,7 @@ var ChoiceChip = (_a) => {
4675
4800
  setSelected(!selected);
4676
4801
  onChange == null ? void 0 : onChange(!selected);
4677
4802
  };
4678
- return /* @__PURE__ */ React35.createElement("span", __spreadProps(__spreadValues({
4803
+ return /* @__PURE__ */ React37.createElement("span", __spreadProps(__spreadValues({
4679
4804
  role: "button",
4680
4805
  "aria-pressed": selected
4681
4806
  }, rest), {
@@ -4690,24 +4815,24 @@ var ChoiceChip = (_a) => {
4690
4815
  };
4691
4816
 
4692
4817
  // src/components/Combobox/Combobox.tsx
4693
- import React38, { useEffect as useEffect4, useRef as useRef3, useState as useState5 } from "react";
4818
+ import React40, { useEffect as useEffect4, useRef as useRef3, useState as useState5 } from "react";
4694
4819
  import { useOverlayPosition as useOverlayPosition2 } from "@react-aria/overlays";
4695
4820
  import { useCombobox } from "downshift";
4696
- import omit5 from "lodash/omit";
4821
+ import omit6 from "lodash/omit";
4697
4822
  import uniqueId2 from "lodash/uniqueId";
4698
4823
  import { matchSorter } from "match-sorter";
4699
4824
 
4700
4825
  // src/components/Popover/PopoverWrapper.tsx
4701
- import React37 from "react";
4826
+ import React39 from "react";
4702
4827
  import { FocusScope } from "@react-aria/focus";
4703
4828
  import { DismissButton, OverlayContainer as OverlayContainer2, useModal, useOverlay } from "@react-aria/overlays";
4704
4829
  import { mergeProps as mergeProps2 } from "@react-aria/utils";
4705
4830
 
4706
4831
  // src/common/Popover/Popover.tsx
4707
- import React36 from "react";
4708
- var PopoverPanel = React36.forwardRef((_a, ref) => {
4832
+ import React38 from "react";
4833
+ var PopoverPanel = React38.forwardRef((_a, ref) => {
4709
4834
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
4710
- return /* @__PURE__ */ React36.createElement("div", __spreadValues({
4835
+ return /* @__PURE__ */ React38.createElement("div", __spreadValues({
4711
4836
  ref,
4712
4837
  className: classNames(
4713
4838
  className,
@@ -4722,7 +4847,7 @@ var Popover = {
4722
4847
  };
4723
4848
 
4724
4849
  // src/components/Popover/PopoverWrapper.tsx
4725
- var PopoverWrapper = React37.forwardRef((props, ref) => {
4850
+ var PopoverWrapper = React39.forwardRef((props, ref) => {
4726
4851
  const _a = props, {
4727
4852
  id,
4728
4853
  children,
@@ -4760,16 +4885,16 @@ var PopoverWrapper = React37.forwardRef((props, ref) => {
4760
4885
  if (!props.isOpen) {
4761
4886
  return null;
4762
4887
  }
4763
- return /* @__PURE__ */ React37.createElement(OverlayContainer2, null, /* @__PURE__ */ React37.createElement(FocusScope, {
4888
+ return /* @__PURE__ */ React39.createElement(OverlayContainer2, null, /* @__PURE__ */ React39.createElement(FocusScope, {
4764
4889
  restoreFocus: true,
4765
4890
  autoFocus,
4766
4891
  contain: containFocus
4767
- }, /* @__PURE__ */ React37.createElement(Popover.Panel, __spreadProps(__spreadValues({
4892
+ }, /* @__PURE__ */ React39.createElement(Popover.Panel, __spreadProps(__spreadValues({
4768
4893
  ref,
4769
4894
  role: "dialog"
4770
4895
  }, mergeProps2(otherProps, modalProps, overlayProps)), {
4771
4896
  id: id != null ? id : overlayProps.id
4772
- }), children, /* @__PURE__ */ React37.createElement(DismissButton, {
4897
+ }), children, /* @__PURE__ */ React39.createElement(DismissButton, {
4773
4898
  onDismiss: props.onClose
4774
4899
  }))));
4775
4900
  });
@@ -4833,7 +4958,8 @@ var ComboboxBase = (_a) => {
4833
4958
  inputValue,
4834
4959
  getItemProps,
4835
4960
  selectedItem,
4836
- closeMenu
4961
+ closeMenu,
4962
+ openMenu
4837
4963
  } = useCombobox({
4838
4964
  id,
4839
4965
  selectedItem: value,
@@ -4868,22 +4994,21 @@ var ComboboxBase = (_a) => {
4868
4994
  const hasNoResults = options.length === 0 || inputItems.length === 0;
4869
4995
  const width = (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth;
4870
4996
  const style = isOpen ? __spreadProps(__spreadValues({}, overlayProps.style), { width }) : { display: "none" };
4871
- return /* @__PURE__ */ React38.createElement("div", {
4997
+ return /* @__PURE__ */ React40.createElement("div", {
4872
4998
  className: tw("relative")
4873
- }, /* @__PURE__ */ React38.createElement(Select.InputContainer, {
4999
+ }, /* @__PURE__ */ React40.createElement(Select.InputContainer, {
4874
5000
  ref: targetRef,
4875
5001
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
4876
- }, /* @__PURE__ */ React38.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
5002
+ }, /* @__PURE__ */ React40.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
4877
5003
  id,
4878
5004
  name,
4879
5005
  placeholder: readOnly ? void 0 : placeholder
4880
5006
  }, inputProps), props), {
4881
5007
  disabled,
4882
5008
  readOnly,
4883
- onFocus: (e) => {
4884
- var _a3;
5009
+ onClick: readOnly ? void 0 : openMenu,
5010
+ onFocus: () => {
4885
5011
  setFocus(true);
4886
- (_a3 = inputProps.onFocus) == null ? void 0 : _a3.call(inputProps, e);
4887
5012
  },
4888
5013
  onBlur: (e) => {
4889
5014
  var _a3;
@@ -4896,25 +5021,26 @@ var ComboboxBase = (_a) => {
4896
5021
  (_a3 = inputProps.onKeyDown) == null ? void 0 : _a3.call(inputProps, e);
4897
5022
  },
4898
5023
  onKeyUp: (e) => e.stopPropagation()
4899
- })), !readOnly && /* @__PURE__ */ React38.createElement(Select.Toggle, __spreadValues({
5024
+ })), !readOnly && /* @__PURE__ */ React40.createElement(Select.Toggle, __spreadValues({
4900
5025
  hasFocus,
4901
5026
  isOpen
4902
- }, getToggleButtonProps({ disabled })))), /* @__PURE__ */ React38.createElement(PopoverWrapper, __spreadProps(__spreadValues({
5027
+ }, getToggleButtonProps({ disabled })))), /* @__PURE__ */ React40.createElement(PopoverWrapper, __spreadProps(__spreadValues({
4903
5028
  isOpen: true,
4904
5029
  isDismissable: true,
4905
5030
  autoFocus: true
4906
5031
  }, getMenuProps({ ref: overlayRef })), {
4907
5032
  style,
4908
- onClose: closeMenu
4909
- }), /* @__PURE__ */ React38.createElement(Select.Menu, {
5033
+ onClose: closeMenu,
5034
+ className: tw("overflow-y-auto")
5035
+ }), /* @__PURE__ */ React40.createElement(Select.Menu, {
4910
5036
  maxHeight
4911
- }, isOpen && hasNoResults && /* @__PURE__ */ React38.createElement(Select.NoResults, null, noResults), isOpen && inputItems.map((item, index) => /* @__PURE__ */ React38.createElement(Select.Item, __spreadValues({
5037
+ }, isOpen && hasNoResults && /* @__PURE__ */ React40.createElement(Select.NoResults, null, noResults), isOpen && inputItems.map((item, index) => /* @__PURE__ */ React40.createElement(Select.Item, __spreadValues({
4912
5038
  key: itemToString(item),
4913
5039
  selected: item === selectedItem,
4914
5040
  highlighted: index === highlightedIndex
4915
5041
  }, getItemProps({ item, index, disabled: isOptionDisabled(item, index) })), renderOption(item))))));
4916
5042
  };
4917
- var ComboboxSkeleton = () => /* @__PURE__ */ React38.createElement(Skeleton, {
5043
+ var ComboboxSkeleton = () => /* @__PURE__ */ React40.createElement(Skeleton, {
4918
5044
  height: 38
4919
5045
  });
4920
5046
  ComboboxBase.Skeleton = ComboboxSkeleton;
@@ -4931,12 +5057,12 @@ var Combobox = (_a) => {
4931
5057
  const errorMessageId = uniqueId2();
4932
5058
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
4933
5059
  const labelControlProps = getLabelControlProps(props);
4934
- const baseProps = omit5(props, Object.keys(labelControlProps));
4935
- return /* @__PURE__ */ React38.createElement(LabelControl, __spreadValues({
5060
+ const baseProps = omit6(props, Object.keys(labelControlProps));
5061
+ return /* @__PURE__ */ React40.createElement(LabelControl, __spreadValues({
4936
5062
  id: `${id.current}-label`,
4937
5063
  htmlFor: `${id.current}-input`,
4938
5064
  messageId: errorMessageId
4939
- }, labelControlProps), /* @__PURE__ */ React38.createElement(ComboboxBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
5065
+ }, labelControlProps), /* @__PURE__ */ React40.createElement(ComboboxBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
4940
5066
  id: id.current,
4941
5067
  options,
4942
5068
  noResults,
@@ -4944,11 +5070,11 @@ var Combobox = (_a) => {
4944
5070
  valid: props.valid
4945
5071
  })));
4946
5072
  };
4947
- Combobox.Skeleton = () => /* @__PURE__ */ React38.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React38.createElement(ComboboxBase.Skeleton, null));
5073
+ Combobox.Skeleton = () => /* @__PURE__ */ React40.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React40.createElement(ComboboxBase.Skeleton, null));
4948
5074
 
4949
5075
  // src/components/Container/Container.tsx
4950
- import React39 from "react";
4951
- var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React39.createElement(Box, {
5076
+ import React41 from "react";
5077
+ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React41.createElement(Box, {
4952
5078
  marginLeft: "auto",
4953
5079
  marginRight: "auto",
4954
5080
  width: "full",
@@ -4962,11 +5088,11 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React39.crea
4962
5088
  }, children);
4963
5089
 
4964
5090
  // src/components/DataList/DataList.tsx
4965
- import React45 from "react";
5091
+ import React47 from "react";
4966
5092
  import orderBy2 from "lodash/orderBy";
4967
5093
 
4968
5094
  // src/components/Template/Template.tsx
4969
- import React40 from "react";
5095
+ import React42 from "react";
4970
5096
  var Template = ({
4971
5097
  children,
4972
5098
  columns,
@@ -4992,23 +5118,23 @@ var Template = ({
4992
5118
  rowGap,
4993
5119
  columnGap
4994
5120
  });
4995
- return /* @__PURE__ */ React40.createElement("div", {
5121
+ return /* @__PURE__ */ React42.createElement("div", {
4996
5122
  style: __spreadValues({}, styles)
4997
5123
  }, children);
4998
5124
  };
4999
5125
 
5000
5126
  // src/common/DataList/DataList.tsx
5001
- import React43 from "react";
5127
+ import React45 from "react";
5002
5128
 
5003
5129
  // src/common/Table/Table.tsx
5004
- import React42 from "react";
5130
+ import React44 from "react";
5005
5131
 
5006
5132
  // src/common/RadioButton/RadioButton.tsx
5007
- import React41 from "react";
5008
- var RadioButton = React41.forwardRef(
5133
+ import React43 from "react";
5134
+ var RadioButton = React43.forwardRef(
5009
5135
  (_a, ref) => {
5010
5136
  var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
5011
- return /* @__PURE__ */ React41.createElement("input", __spreadProps(__spreadValues({
5137
+ return /* @__PURE__ */ React43.createElement("input", __spreadProps(__spreadValues({
5012
5138
  id,
5013
5139
  ref,
5014
5140
  type: "radio",
@@ -5016,9 +5142,9 @@ var RadioButton = React41.forwardRef(
5016
5142
  }, props), {
5017
5143
  className: classNames(
5018
5144
  tw(
5019
- "inline-flex justify-center items-center self-center appearance-none ",
5145
+ "inline-flex justify-center items-center self-center appearance-none",
5020
5146
  "w-5 h-5 p-[3px] rounded-full cursor-pointer border border-grey-20",
5021
- "focus:border-info-70 checked:bg-navyBlue-100 checked:shadow-whiteInset",
5147
+ "outline-none focus:border-info-70 checked:bg-navyBlue-100 checked:shadow-whiteInset",
5022
5148
  {
5023
5149
  "hover:border-grey-50 checked:border-navyBlue-100": !disabled,
5024
5150
  "cursor-not-allowed border-grey-5 bg-grey-0 checked:bg-opacity-40": disabled
@@ -5034,29 +5160,29 @@ var RadioButton = React41.forwardRef(
5034
5160
  // src/common/Table/Table.tsx
5035
5161
  var import_chevronDown3 = __toESM(require_chevronDown());
5036
5162
  var import_chevronUp2 = __toESM(require_chevronUp());
5037
- var HeadContext = React42.createContext(null);
5163
+ var HeadContext = React44.createContext(null);
5038
5164
  var tableClassNames = tw("w-full relative typography-default border-spacing-0");
5039
5165
  var Table = (_a) => {
5040
5166
  var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
5041
- return /* @__PURE__ */ React42.createElement("table", __spreadProps(__spreadValues({}, rest), {
5167
+ return /* @__PURE__ */ React44.createElement("table", __spreadProps(__spreadValues({}, rest), {
5042
5168
  className: classNames(tableClassNames, className),
5043
5169
  "aria-label": ariaLabel
5044
5170
  }), children);
5045
5171
  };
5046
5172
  var TableHead = (_a) => {
5047
5173
  var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
5048
- return /* @__PURE__ */ React42.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React42.createElement("tr", null, /* @__PURE__ */ React42.createElement(HeadContext.Provider, {
5174
+ return /* @__PURE__ */ React44.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React44.createElement("tr", null, /* @__PURE__ */ React44.createElement(HeadContext.Provider, {
5049
5175
  value: { children, sticky }
5050
5176
  }, children)));
5051
5177
  };
5052
5178
  var TableBody = (_a) => {
5053
5179
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
5054
- return /* @__PURE__ */ React42.createElement("tbody", __spreadValues({}, rest), children);
5180
+ return /* @__PURE__ */ React44.createElement("tbody", __spreadValues({}, rest), children);
5055
5181
  };
5056
5182
  var rowClassNames = tw("children:border-grey-10 children:last:border-b-0 hover:bg-grey-0");
5057
5183
  var TableRow = (_a) => {
5058
5184
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5059
- return /* @__PURE__ */ React42.createElement("tr", __spreadProps(__spreadValues({}, rest), {
5185
+ return /* @__PURE__ */ React44.createElement("tr", __spreadProps(__spreadValues({}, rest), {
5060
5186
  className: classNames(rowClassNames, className)
5061
5187
  }), children);
5062
5188
  };
@@ -5072,25 +5198,25 @@ var getHeadCellClassNames = (sticky = true) => {
5072
5198
  };
5073
5199
  var TableCell = (_a) => {
5074
5200
  var _b = _a, { children, className, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "align"]);
5075
- const headContext = React42.useContext(HeadContext);
5076
- return headContext ? /* @__PURE__ */ React42.createElement("th", __spreadProps(__spreadValues({}, rest), {
5201
+ const headContext = React44.useContext(HeadContext);
5202
+ return headContext ? /* @__PURE__ */ React44.createElement("th", __spreadProps(__spreadValues({}, rest), {
5077
5203
  className: classNames(
5078
5204
  cellClassNames,
5079
5205
  getHeadCellClassNames(headContext.sticky),
5080
5206
  getAlignClassNames(align),
5081
5207
  className
5082
5208
  )
5083
- }), children) : /* @__PURE__ */ React42.createElement("td", __spreadProps(__spreadValues({}, rest), {
5209
+ }), children) : /* @__PURE__ */ React44.createElement("td", __spreadProps(__spreadValues({}, rest), {
5084
5210
  className: classNames(cellClassNames, getBodyCellClassNames(), getAlignClassNames(align), className)
5085
5211
  }), children);
5086
5212
  };
5087
5213
  var TableSelectCell = (_a) => {
5088
5214
  var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
5089
- return /* @__PURE__ */ React42.createElement(Table.Cell, {
5215
+ return /* @__PURE__ */ React44.createElement(Table.Cell, {
5090
5216
  className: tw("leading-[0px]")
5091
- }, props.type === "radio" ? /* @__PURE__ */ React42.createElement(RadioButton, __spreadValues({
5217
+ }, props.type === "radio" ? /* @__PURE__ */ React44.createElement(RadioButton, __spreadValues({
5092
5218
  "aria-label": ariaLabel
5093
- }, props)) : /* @__PURE__ */ React42.createElement(Checkbox, __spreadValues({
5219
+ }, props)) : /* @__PURE__ */ React44.createElement(Checkbox, __spreadValues({
5094
5220
  "aria-label": ariaLabel
5095
5221
  }, props)));
5096
5222
  };
@@ -5100,39 +5226,39 @@ var getSortCellIconClassNames = (active) => {
5100
5226
  };
5101
5227
  var TableSortCell = (_a) => {
5102
5228
  var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
5103
- return /* @__PURE__ */ React42.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
5229
+ return /* @__PURE__ */ React44.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
5104
5230
  "aria-sort": direction
5105
- }), /* @__PURE__ */ React42.createElement("span", {
5231
+ }), /* @__PURE__ */ React44.createElement("span", {
5106
5232
  className: getSortCellButtonClassNames(rest.align),
5107
5233
  role: "button",
5108
5234
  tabIndex: -1,
5109
5235
  onClick
5110
- }, children, /* @__PURE__ */ React42.createElement("div", {
5236
+ }, children, /* @__PURE__ */ React44.createElement("div", {
5111
5237
  "data-sort-icons": true,
5112
5238
  className: tw("flex flex-col", {
5113
5239
  "invisible group-hover:visible": direction === "none"
5114
5240
  })
5115
- }, /* @__PURE__ */ React42.createElement(InlineIcon, {
5241
+ }, /* @__PURE__ */ React44.createElement(InlineIcon, {
5116
5242
  icon: import_chevronUp2.default,
5117
5243
  className: getSortCellIconClassNames(direction === "descending")
5118
- }), /* @__PURE__ */ React42.createElement(InlineIcon, {
5244
+ }), /* @__PURE__ */ React44.createElement(InlineIcon, {
5119
5245
  icon: import_chevronDown3.default,
5120
5246
  className: getSortCellIconClassNames(direction === "ascending")
5121
5247
  }))));
5122
5248
  };
5123
- var Item2 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React42.createElement("div", {
5249
+ var Item2 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React44.createElement("div", {
5124
5250
  className: tw("flex gap-4 items-center")
5125
- }, image && /* @__PURE__ */ React42.createElement("img", {
5251
+ }, image && /* @__PURE__ */ React44.createElement("img", {
5126
5252
  src: image,
5127
5253
  alt: imageAlt,
5128
5254
  style: { width: imageSize, height: imageSize }
5129
- }), /* @__PURE__ */ React42.createElement("div", null, title, caption && /* @__PURE__ */ React42.createElement(Typography2.Caption, null, caption)));
5130
- Table.Head = React42.memo(TableHead);
5131
- Table.Body = React42.memo(TableBody);
5132
- Table.Row = React42.memo(TableRow);
5133
- Table.Cell = React42.memo(TableCell);
5134
- Table.SortCell = React42.memo(TableSortCell);
5135
- Table.SelectCell = React42.memo(TableSelectCell);
5255
+ }), /* @__PURE__ */ React44.createElement("div", null, title, caption && /* @__PURE__ */ React44.createElement(Typography2.Caption, null, caption)));
5256
+ Table.Head = React44.memo(TableHead);
5257
+ Table.Body = React44.memo(TableBody);
5258
+ Table.Row = React44.memo(TableRow);
5259
+ Table.Cell = React44.memo(TableCell);
5260
+ Table.SortCell = React44.memo(TableSortCell);
5261
+ Table.SelectCell = React44.memo(TableSelectCell);
5136
5262
 
5137
5263
  // src/common/DataList/DataList.tsx
5138
5264
  var import_chevronDown4 = __toESM(require_chevronDown());
@@ -5144,7 +5270,7 @@ var getAlignClassNames2 = (align) => tw("flex items-center", {
5144
5270
  });
5145
5271
  var DataList = (_a) => {
5146
5272
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
5147
- return /* @__PURE__ */ React43.createElement("div", __spreadValues({}, rest));
5273
+ return /* @__PURE__ */ React45.createElement("div", __spreadValues({}, rest));
5148
5274
  };
5149
5275
  var HeadCell = (_a) => {
5150
5276
  var _b = _a, {
@@ -5156,14 +5282,14 @@ var HeadCell = (_a) => {
5156
5282
  "sticky",
5157
5283
  "align"
5158
5284
  ]);
5159
- return /* @__PURE__ */ React43.createElement("div", __spreadProps(__spreadValues({}, rest), {
5285
+ return /* @__PURE__ */ React45.createElement("div", __spreadProps(__spreadValues({}, rest), {
5160
5286
  role: "cell",
5161
5287
  className: classNames(cellClassNames, getHeadCellClassNames(sticky), getAlignClassNames2(align), className)
5162
5288
  }));
5163
5289
  };
5164
5290
  var Cell = (_a) => {
5165
5291
  var _b = _a, { className, align } = _b, rest = __objRest(_b, ["className", "align"]);
5166
- return /* @__PURE__ */ React43.createElement("div", __spreadProps(__spreadValues({}, rest), {
5292
+ return /* @__PURE__ */ React45.createElement("div", __spreadProps(__spreadValues({}, rest), {
5167
5293
  role: "cell",
5168
5294
  className: classNames(
5169
5295
  cellClassNames,
@@ -5176,30 +5302,30 @@ var Cell = (_a) => {
5176
5302
  };
5177
5303
  var Row = (_a) => {
5178
5304
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
5179
- return /* @__PURE__ */ React43.createElement("div", __spreadProps(__spreadValues({}, rest), {
5305
+ return /* @__PURE__ */ React45.createElement("div", __spreadProps(__spreadValues({}, rest), {
5180
5306
  className: classNames(tw("contents group"), className),
5181
5307
  role: "row"
5182
5308
  }));
5183
5309
  };
5184
5310
  var SortCell = (_a) => {
5185
5311
  var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
5186
- return /* @__PURE__ */ React43.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), {
5312
+ return /* @__PURE__ */ React45.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), {
5187
5313
  "aria-sort": direction,
5188
5314
  role: "cell"
5189
- }), /* @__PURE__ */ React43.createElement("span", {
5315
+ }), /* @__PURE__ */ React45.createElement("span", {
5190
5316
  className: getSortCellButtonClassNames(rest.align),
5191
5317
  role: "button",
5192
5318
  tabIndex: -1,
5193
5319
  onClick
5194
- }, children, /* @__PURE__ */ React43.createElement("div", {
5320
+ }, children, /* @__PURE__ */ React45.createElement("div", {
5195
5321
  "data-sort-icons": true,
5196
5322
  className: tw("flex flex-col", {
5197
5323
  "invisible group-hover:visible": direction === "none"
5198
5324
  })
5199
- }, /* @__PURE__ */ React43.createElement(InlineIcon, {
5325
+ }, /* @__PURE__ */ React45.createElement(InlineIcon, {
5200
5326
  icon: import_chevronUp3.default,
5201
5327
  className: getSortCellIconClassNames(direction === "descending")
5202
- }), /* @__PURE__ */ React43.createElement(InlineIcon, {
5328
+ }), /* @__PURE__ */ React45.createElement(InlineIcon, {
5203
5329
  icon: import_chevronDown4.default,
5204
5330
  className: getSortCellIconClassNames(direction === "ascending")
5205
5331
  }))));
@@ -5225,9 +5351,9 @@ var cellProps = (column) => ({
5225
5351
  });
5226
5352
 
5227
5353
  // src/utils/table/useTableSort.tsx
5228
- import React44 from "react";
5354
+ import React46 from "react";
5229
5355
  var useTableSort = () => {
5230
- const [sort, setSort] = React44.useState();
5356
+ const [sort, setSort] = React46.useState();
5231
5357
  const handleSortClick = (field) => {
5232
5358
  if ((sort == null ? void 0 : sort.key) === field) {
5233
5359
  if (sort.direction === "ascending") {
@@ -5250,40 +5376,40 @@ var DataList2 = ({ columns, rows }) => {
5250
5376
  var _a;
5251
5377
  return (_a = column.width) != null ? _a : "auto";
5252
5378
  });
5253
- return /* @__PURE__ */ React45.createElement(Template, {
5379
+ return /* @__PURE__ */ React47.createElement(Template, {
5254
5380
  columns: templateColumns
5255
5381
  }, columns.map(
5256
- (column) => (column.type === "text" || column.type === "number") && column.sortable ? /* @__PURE__ */ React45.createElement(DataList.SortCell, __spreadValues({
5382
+ (column) => (column.type === "text" || column.type === "number") && column.sortable ? /* @__PURE__ */ React47.createElement(DataList.SortCell, __spreadValues({
5257
5383
  direction: sort && sort.key === column.field ? sort.direction : "none",
5258
5384
  onClick: () => updateSort(column.field)
5259
- }, cellProps(column)), column.headerName) : /* @__PURE__ */ React45.createElement(DataList.HeadCell, __spreadValues({}, cellProps(column)), column.headerName)
5260
- ), /* @__PURE__ */ React45.createElement(List, {
5385
+ }, cellProps(column)), column.headerName) : /* @__PURE__ */ React47.createElement(DataList.HeadCell, __spreadValues({}, cellProps(column)), column.headerName)
5386
+ ), /* @__PURE__ */ React47.createElement(List, {
5261
5387
  items: sortedRows,
5262
- renderItem: (row, index) => /* @__PURE__ */ React45.createElement(DataList.Row, {
5388
+ renderItem: (row, index) => /* @__PURE__ */ React47.createElement(DataList.Row, {
5263
5389
  key: row.id
5264
- }, /* @__PURE__ */ React45.createElement(List, {
5390
+ }, /* @__PURE__ */ React47.createElement(List, {
5265
5391
  items: columns,
5266
- renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React45.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React45.createElement(StatusChip, __spreadValues({
5392
+ renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React47.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React47.createElement(StatusChip, __spreadValues({
5267
5393
  dense: true
5268
- }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React45.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React45.createElement(SecondaryButton, __spreadValues({
5394
+ }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React47.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React47.createElement(SecondaryButton, __spreadValues({
5269
5395
  dense: true
5270
- }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React45.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React45.createElement(DataList.Cell, null, /* @__PURE__ */ React45.createElement(Item2, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React45.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
5396
+ }, 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])
5271
5397
  }))
5272
5398
  }));
5273
5399
  };
5274
5400
 
5275
5401
  // src/components/DataTable/DataTable.tsx
5276
- import React48 from "react";
5402
+ import React50 from "react";
5277
5403
  import orderBy3 from "lodash/orderBy";
5278
5404
 
5279
5405
  // src/components/Table/Table.tsx
5280
- import React47 from "react";
5406
+ import React49 from "react";
5281
5407
 
5282
5408
  // src/utils/table/useScrollTarget.ts
5283
- import React46 from "react";
5409
+ import React48 from "react";
5284
5410
  var useScrollTarget = (callback) => {
5285
- const targetRef = React46.useRef(null);
5286
- React46.useLayoutEffect(() => {
5411
+ const targetRef = React48.useRef(null);
5412
+ React48.useLayoutEffect(() => {
5287
5413
  const observer = new IntersectionObserver((entries) => entries[0].isIntersecting && callback && callback(), {
5288
5414
  root: null,
5289
5415
  rootMargin: `0px 0px 200px 0px`
@@ -5301,12 +5427,12 @@ var Table2 = (_a) => {
5301
5427
  var _b = _a, { children, onPrev, onNext } = _b, rest = __objRest(_b, ["children", "onPrev", "onNext"]);
5302
5428
  const bottomRef = useScrollTarget(onNext);
5303
5429
  const topRef = useScrollTarget(onPrev);
5304
- return /* @__PURE__ */ React47.createElement("div", {
5430
+ return /* @__PURE__ */ React49.createElement("div", {
5305
5431
  className: "relative w-full"
5306
- }, /* @__PURE__ */ React47.createElement("div", {
5432
+ }, /* @__PURE__ */ React49.createElement("div", {
5307
5433
  ref: topRef,
5308
5434
  className: tw("absolute top-0 h-1 w-full left-0 bg-transparent")
5309
- }), /* @__PURE__ */ React47.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React47.createElement("div", {
5435
+ }), /* @__PURE__ */ React49.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React49.createElement("div", {
5310
5436
  ref: bottomRef,
5311
5437
  className: tw("absolute bottom-0 h-1 w-full left-0 bg-transparent")
5312
5438
  }));
@@ -5333,43 +5459,43 @@ var DataTable = (_a) => {
5333
5459
  ]);
5334
5460
  const [sort, updateSort] = useTableSort();
5335
5461
  const sortedRows = orderBy3(rows, [sort == null ? void 0 : sort.key], [toSortDirection(sort == null ? void 0 : sort.direction)]);
5336
- return /* @__PURE__ */ React48.createElement(Table2, __spreadProps(__spreadValues({}, rest), {
5462
+ return /* @__PURE__ */ React50.createElement(Table2, __spreadProps(__spreadValues({}, rest), {
5337
5463
  className: tw({
5338
5464
  "whitespace-nowrap": noWrap,
5339
5465
  "table-auto": layout === "auto",
5340
5466
  "table-fixed": layout === "fixed"
5341
5467
  })
5342
- }), /* @__PURE__ */ React48.createElement(Table2.Head, null, columns.map(
5343
- (column) => (column.type === "text" || column.type === "number") && column.sortable ? /* @__PURE__ */ React48.createElement(Table2.SortCell, __spreadValues({
5468
+ }), /* @__PURE__ */ React50.createElement(Table2.Head, null, columns.map(
5469
+ (column) => (column.type === "text" || column.type === "number") && column.sortable ? /* @__PURE__ */ React50.createElement(Table2.SortCell, __spreadValues({
5344
5470
  direction: sort && sort.key === column.field ? sort.direction : "none",
5345
5471
  onClick: () => updateSort(column.field),
5346
5472
  style: { width: column.width }
5347
- }, cellProps(column)), column.headerName) : /* @__PURE__ */ React48.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
5473
+ }, cellProps(column)), column.headerName) : /* @__PURE__ */ React50.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
5348
5474
  style: { width: column.width }
5349
5475
  }), column.headerName)
5350
- )), /* @__PURE__ */ React48.createElement(Table2.Body, null, /* @__PURE__ */ React48.createElement(List, {
5476
+ )), /* @__PURE__ */ React50.createElement(Table2.Body, null, /* @__PURE__ */ React50.createElement(List, {
5351
5477
  items: sortedRows,
5352
- renderItem: (row, index) => /* @__PURE__ */ React48.createElement(Table2.Row, {
5478
+ renderItem: (row, index) => /* @__PURE__ */ React50.createElement(Table2.Row, {
5353
5479
  key: row.id
5354
- }, /* @__PURE__ */ React48.createElement(List, {
5480
+ }, /* @__PURE__ */ React50.createElement(List, {
5355
5481
  items: columns,
5356
- renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React48.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React48.createElement(StatusChip, __spreadValues({
5482
+ renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React50.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React50.createElement(StatusChip, __spreadValues({
5357
5483
  dense: true
5358
- }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React48.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React48.createElement(SecondaryButton, __spreadValues({
5484
+ }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React50.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React50.createElement(SecondaryButton, __spreadValues({
5359
5485
  dense: true
5360
- }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React48.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React48.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React48.createElement(Item2, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React48.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
5486
+ }, 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])
5361
5487
  }))
5362
5488
  })));
5363
5489
  };
5364
5490
 
5365
5491
  // src/components/Dialog/Dialog.tsx
5366
- import React50 from "react";
5492
+ import React52 from "react";
5367
5493
  import { useDialog } from "@react-aria/dialog";
5368
5494
  import { FocusScope as FocusScope2 } from "@react-aria/focus";
5369
5495
  import { Overlay, useModalOverlay } from "@react-aria/overlays";
5370
5496
  import { useId } from "@react-aria/utils";
5371
5497
  import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
5372
- import omit6 from "lodash/omit";
5498
+ import omit7 from "lodash/omit";
5373
5499
 
5374
5500
  // src/common/Dialog/Dialog.tsx
5375
5501
  var import_confirm2 = __toESM(require_confirm());
@@ -5391,10 +5517,10 @@ var DIALOG_ICONS_AND_COLORS = {
5391
5517
  };
5392
5518
 
5393
5519
  // src/common/Modal/Modal.tsx
5394
- import React49 from "react";
5520
+ import React51 from "react";
5395
5521
  var Modal = (_a) => {
5396
5522
  var _b = _a, { children, className, open } = _b, rest = __objRest(_b, ["children", "className", "open"]);
5397
- return open ? /* @__PURE__ */ React49.createElement("div", __spreadProps(__spreadValues({}, rest), {
5523
+ return open ? /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5398
5524
  className: classNames(
5399
5525
  tw("inset-0 overflow-y-auto z-modal flex justify-center items-center fixed py-7"),
5400
5526
  className
@@ -5403,14 +5529,14 @@ var Modal = (_a) => {
5403
5529
  };
5404
5530
  Modal.BackDrop = (_a) => {
5405
5531
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
5406
- return /* @__PURE__ */ React49.createElement("div", __spreadProps(__spreadValues({}, rest), {
5532
+ return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5407
5533
  className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-navyBlue-100 opacity-70"), className)
5408
5534
  }));
5409
5535
  };
5410
- Modal.Dialog = React49.forwardRef(
5536
+ Modal.Dialog = React51.forwardRef(
5411
5537
  (_a, ref) => {
5412
5538
  var _b = _a, { children, className, size = "sm" } = _b, rest = __objRest(_b, ["children", "className", "size"]);
5413
- return /* @__PURE__ */ React49.createElement("div", __spreadProps(__spreadValues({
5539
+ return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({
5414
5540
  ref,
5415
5541
  "aria-modal": "true"
5416
5542
  }, rest), {
@@ -5428,31 +5554,31 @@ Modal.Dialog = React49.forwardRef(
5428
5554
  );
5429
5555
  Modal.Header = (_a) => {
5430
5556
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5431
- return /* @__PURE__ */ React49.createElement("div", __spreadProps(__spreadValues({}, rest), {
5557
+ return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5432
5558
  className: classNames(tw("px-7 py-6 gap-3 flex items-center"), className)
5433
5559
  }), children);
5434
5560
  };
5435
5561
  Modal.HeaderImage = (_a) => {
5436
5562
  var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
5437
5563
  const common = tw("h-[120px] min-h-[120px] w-full ");
5438
- return backgroundImage ? /* @__PURE__ */ React49.createElement("img", __spreadProps(__spreadValues({
5564
+ return backgroundImage ? /* @__PURE__ */ React51.createElement("img", __spreadProps(__spreadValues({
5439
5565
  "aria-hidden": true,
5440
5566
  src: backgroundImage != null ? backgroundImage : void 0
5441
5567
  }, rest), {
5442
5568
  className: classNames(common, tw("object-cover"), className)
5443
- })) : /* @__PURE__ */ React49.createElement("div", {
5569
+ })) : /* @__PURE__ */ React51.createElement("div", {
5444
5570
  className: classNames(common, tw("bg-grey-5"), className)
5445
5571
  });
5446
5572
  };
5447
5573
  Modal.CloseButtonContainer = (_a) => {
5448
5574
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
5449
- return /* @__PURE__ */ React49.createElement("div", __spreadProps(__spreadValues({}, rest), {
5575
+ return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5450
5576
  className: classNames(tw("absolute top-[20px] right-[28px]"), className)
5451
5577
  }));
5452
5578
  };
5453
5579
  Modal.Title = (_a) => {
5454
5580
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5455
- return /* @__PURE__ */ React49.createElement(Typography, __spreadValues({
5581
+ return /* @__PURE__ */ React51.createElement(Typography, __spreadValues({
5456
5582
  htmlTag: "h2",
5457
5583
  variant: "subheading",
5458
5584
  color: "grey-90",
@@ -5461,33 +5587,33 @@ Modal.Title = (_a) => {
5461
5587
  };
5462
5588
  Modal.Subtitle = (_a) => {
5463
5589
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
5464
- return /* @__PURE__ */ React49.createElement(Typography, __spreadValues({
5590
+ return /* @__PURE__ */ React51.createElement(Typography, __spreadValues({
5465
5591
  variant: "small",
5466
5592
  color: "grey-60"
5467
5593
  }, rest), children);
5468
5594
  };
5469
5595
  Modal.TitleContainer = (_a) => {
5470
5596
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5471
- return /* @__PURE__ */ React49.createElement("div", __spreadProps(__spreadValues({}, rest), {
5597
+ return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5472
5598
  className: classNames(tw("flex flex-col grow gap-2"), className)
5473
5599
  }), children);
5474
5600
  };
5475
5601
  Modal.Body = (_a) => {
5476
5602
  var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
5477
- return /* @__PURE__ */ React49.createElement("div", __spreadProps(__spreadValues({}, rest), {
5603
+ return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5478
5604
  className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
5479
5605
  style: __spreadValues({ maxHeight }, style)
5480
5606
  }), children);
5481
5607
  };
5482
5608
  Modal.Footer = (_a) => {
5483
5609
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5484
- return /* @__PURE__ */ React49.createElement("div", __spreadProps(__spreadValues({}, rest), {
5610
+ return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5485
5611
  className: classNames(tw("px-7 py-6"), className)
5486
5612
  }), children);
5487
5613
  };
5488
5614
  Modal.Actions = (_a) => {
5489
5615
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5490
- return /* @__PURE__ */ React49.createElement("div", __spreadProps(__spreadValues({}, rest), {
5616
+ return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5491
5617
  className: classNames(tw("flex gap-4 justify-end"), className)
5492
5618
  }), children);
5493
5619
  };
@@ -5501,7 +5627,7 @@ var Dialog = ({
5501
5627
  primaryAction,
5502
5628
  secondaryAction
5503
5629
  }) => {
5504
- const ref = React50.useRef(null);
5630
+ const ref = React52.useRef(null);
5505
5631
  const state = useOverlayTriggerState2({ isOpen: open });
5506
5632
  const { modalProps, underlayProps } = useModalOverlay({ isDismissable: false }, state, ref);
5507
5633
  const labelledBy = useId();
@@ -5513,34 +5639,34 @@ var Dialog = ({
5513
5639
  if (!open) {
5514
5640
  return null;
5515
5641
  }
5516
- return /* @__PURE__ */ React50.createElement(Overlay, null, /* @__PURE__ */ React50.createElement(Modal, {
5642
+ return /* @__PURE__ */ React52.createElement(Overlay, null, /* @__PURE__ */ React52.createElement(Modal, {
5517
5643
  open
5518
- }, /* @__PURE__ */ React50.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React50.createElement(FocusScope2, {
5644
+ }, /* @__PURE__ */ React52.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React52.createElement(FocusScope2, {
5519
5645
  contain: true,
5520
5646
  restoreFocus: true,
5521
5647
  autoFocus: true
5522
- }, /* @__PURE__ */ React50.createElement(Modal.Dialog, __spreadValues(__spreadValues({
5648
+ }, /* @__PURE__ */ React52.createElement(Modal.Dialog, __spreadValues(__spreadValues({
5523
5649
  ref,
5524
5650
  size: "sm"
5525
- }, modalProps), dialogProps), /* @__PURE__ */ React50.createElement(Modal.Header, null, /* @__PURE__ */ React50.createElement(Icon, {
5651
+ }, modalProps), dialogProps), /* @__PURE__ */ React52.createElement(Modal.Header, null, /* @__PURE__ */ React52.createElement(Icon, {
5526
5652
  icon: DIALOG_ICONS_AND_COLORS[type].icon,
5527
5653
  color: DIALOG_ICONS_AND_COLORS[type].color,
5528
5654
  fontSize: 20
5529
- }), /* @__PURE__ */ React50.createElement(Modal.Title, {
5655
+ }), /* @__PURE__ */ React52.createElement(Modal.Title, {
5530
5656
  id: labelledBy,
5531
5657
  variant: "large-strong",
5532
5658
  color: DIALOG_ICONS_AND_COLORS[type].color
5533
- }, title)), /* @__PURE__ */ React50.createElement(Modal.Body, {
5659
+ }, title)), /* @__PURE__ */ React52.createElement(Modal.Body, {
5534
5660
  id: describedBy
5535
- }, children), /* @__PURE__ */ React50.createElement(Modal.Footer, null, /* @__PURE__ */ React50.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React50.createElement(GhostButton, __spreadValues({
5661
+ }, children), /* @__PURE__ */ React52.createElement(Modal.Footer, null, /* @__PURE__ */ React52.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React52.createElement(GhostButton, __spreadValues({
5536
5662
  key: secondaryAction.text
5537
- }, omit6(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React50.createElement(SecondaryButton, __spreadValues({
5663
+ }, omit7(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React52.createElement(SecondaryButton, __spreadValues({
5538
5664
  key: primaryAction.text
5539
- }, omit6(primaryAction, "text")), primaryAction.text)))))));
5665
+ }, omit7(primaryAction, "text")), primaryAction.text)))))));
5540
5666
  };
5541
5667
 
5542
5668
  // src/components/Divider/Divider.tsx
5543
- import React51 from "react";
5669
+ import React53 from "react";
5544
5670
  var sizeClasses = {
5545
5671
  horizontal: {
5546
5672
  1: "h-1px",
@@ -5562,7 +5688,7 @@ var sizeClasses = {
5562
5688
  var Divider2 = (_a) => {
5563
5689
  var _b = _a, { direction = "horizontal", size = 1 } = _b, props = __objRest(_b, ["direction", "size"]);
5564
5690
  const sizeClass = sizeClasses[direction][size];
5565
- return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, props), {
5691
+ return /* @__PURE__ */ React53.createElement("div", __spreadProps(__spreadValues({}, props), {
5566
5692
  className: tw(`bg-grey-5 ${sizeClass}`, {
5567
5693
  "block w-full": direction === "horizontal",
5568
5694
  "inline-block h-full": direction === "vertical"
@@ -5571,10 +5697,10 @@ var Divider2 = (_a) => {
5571
5697
  };
5572
5698
 
5573
5699
  // src/components/Dropdown/Dropdown.tsx
5574
- import React53 from "react";
5700
+ import React55 from "react";
5575
5701
 
5576
5702
  // src/components/Popover/Popover.tsx
5577
- import React52, { useRef as useRef4 } from "react";
5703
+ import React54, { useRef as useRef4 } from "react";
5578
5704
  import { PressResponder, usePress } from "@react-aria/interactions";
5579
5705
  import { useOverlayPosition as useOverlayPosition3, useOverlayTrigger } from "@react-aria/overlays";
5580
5706
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
@@ -5623,22 +5749,22 @@ var Popover2 = (props) => {
5623
5749
  state,
5624
5750
  triggerRef
5625
5751
  );
5626
- return /* @__PURE__ */ React52.createElement(PopoverContext.Provider, {
5752
+ return /* @__PURE__ */ React54.createElement(PopoverContext.Provider, {
5627
5753
  value: {
5628
5754
  state
5629
5755
  }
5630
- }, React52.Children.map(props.children, (child) => {
5756
+ }, React54.Children.map(props.children, (child) => {
5631
5757
  if (isComponentType(child, Popover2.Trigger)) {
5632
- return /* @__PURE__ */ React52.createElement(PressResponder, __spreadValues({
5758
+ return /* @__PURE__ */ React54.createElement(PressResponder, __spreadValues({
5633
5759
  ref: triggerRef,
5634
5760
  onPress: state.toggle
5635
- }, triggerProps), /* @__PURE__ */ React52.createElement(PopoverTriggerWrapper, {
5761
+ }, triggerProps), /* @__PURE__ */ React54.createElement(PopoverTriggerWrapper, {
5636
5762
  "data-testid": props["data-testid"],
5637
5763
  "aria-controls": id
5638
5764
  }, child.props.children));
5639
5765
  }
5640
5766
  if (isComponentType(child, Popover2.Panel)) {
5641
- return /* @__PURE__ */ React52.createElement(PopoverWrapper, __spreadProps(__spreadValues(__spreadValues({
5767
+ return /* @__PURE__ */ React54.createElement(PopoverWrapper, __spreadProps(__spreadValues(__spreadValues({
5642
5768
  ref: overlayRef,
5643
5769
  isOpen: state.isOpen,
5644
5770
  onClose: state.close,
@@ -5669,7 +5795,7 @@ var asPopoverButton = (Component, displayName) => {
5669
5795
  state.close();
5670
5796
  onClick == null ? void 0 : onClick(e);
5671
5797
  };
5672
- return /* @__PURE__ */ React52.createElement(Component, __spreadProps(__spreadValues({}, props), {
5798
+ return /* @__PURE__ */ React54.createElement(Component, __spreadProps(__spreadValues({}, props), {
5673
5799
  onClick: handleClick
5674
5800
  }));
5675
5801
  };
@@ -5682,9 +5808,9 @@ var PopoverTriggerWrapper = (_a) => {
5682
5808
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
5683
5809
  var _a2;
5684
5810
  const ref = useRef4(null);
5685
- const trigger = React52.Children.only(children);
5811
+ const trigger = React54.Children.only(children);
5686
5812
  const { pressProps } = usePress(__spreadProps(__spreadValues({}, rest), { ref }));
5687
- return React52.cloneElement(trigger, __spreadProps(__spreadValues({
5813
+ return React54.cloneElement(trigger, __spreadProps(__spreadValues({
5688
5814
  "ref": ref
5689
5815
  }, mergeProps3(pressProps, trigger.props)), {
5690
5816
  "aria-controls": (_a2 = rest["aria-controls"]) != null ? _a2 : pressProps["aria-controls"]
@@ -5693,11 +5819,11 @@ var PopoverTriggerWrapper = (_a) => {
5693
5819
 
5694
5820
  // src/components/Dropdown/Dropdown.tsx
5695
5821
  var Dropdown = ({ children, content, placement = "bottom-left" }) => {
5696
- return /* @__PURE__ */ React53.createElement(Popover2, {
5822
+ return /* @__PURE__ */ React55.createElement(Popover2, {
5697
5823
  type: "menu",
5698
5824
  placement,
5699
5825
  autoFocus: true
5700
- }, /* @__PURE__ */ React53.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React53.createElement(Popover2.Panel, null, content));
5826
+ }, /* @__PURE__ */ React55.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React55.createElement(Popover2.Panel, null, content));
5701
5827
  };
5702
5828
  var DropdownMenu = ({
5703
5829
  title,
@@ -5706,26 +5832,26 @@ var DropdownMenu = ({
5706
5832
  triggerId,
5707
5833
  setClose = () => void 0
5708
5834
  }) => {
5709
- const menuRef = React53.useRef(null);
5710
- React53.useEffect(() => {
5835
+ const menuRef = React55.useRef(null);
5836
+ React55.useEffect(() => {
5711
5837
  const id = setTimeout(() => {
5712
5838
  var _a, _b, _c;
5713
5839
  return (_c = (_b = (_a = menuRef.current) == null ? void 0 : _a.children) == null ? void 0 : _b[0]) == null ? void 0 : _c.focus();
5714
5840
  });
5715
5841
  return () => clearTimeout(id);
5716
5842
  }, [menuRef.current]);
5717
- return /* @__PURE__ */ React53.createElement("div", {
5843
+ return /* @__PURE__ */ React55.createElement("div", {
5718
5844
  style: { minWidth: "250px" },
5719
5845
  className: tw("py-3 bg-white")
5720
- }, !!title && /* @__PURE__ */ React53.createElement("div", {
5846
+ }, !!title && /* @__PURE__ */ React55.createElement("div", {
5721
5847
  className: tw("px-4 py-4 text-left text-grey-100 typography-default-strong")
5722
- }, title), /* @__PURE__ */ React53.createElement("ol", {
5848
+ }, title), /* @__PURE__ */ React55.createElement("ol", {
5723
5849
  role: "menu",
5724
5850
  ref: menuRef,
5725
5851
  id: contentId,
5726
5852
  "aria-labelledby": triggerId
5727
- }, React53.Children.map(children, (child) => {
5728
- return React53.cloneElement(child, { setClose });
5853
+ }, React55.Children.map(children, (child) => {
5854
+ return React55.cloneElement(child, { setClose });
5729
5855
  })));
5730
5856
  };
5731
5857
  var DropdownItem = (_a) => {
@@ -5780,10 +5906,10 @@ var DropdownItem = (_a) => {
5780
5906
  handleSelect();
5781
5907
  }
5782
5908
  };
5783
- const itemContent = /* @__PURE__ */ React53.createElement("div", {
5909
+ const itemContent = /* @__PURE__ */ React55.createElement("div", {
5784
5910
  className: tw("py-3 px-4")
5785
5911
  }, children);
5786
- return /* @__PURE__ */ React53.createElement("li", __spreadProps(__spreadValues({
5912
+ return /* @__PURE__ */ React55.createElement("li", __spreadProps(__spreadValues({
5787
5913
  role: "menuitem",
5788
5914
  tabIndex: -1,
5789
5915
  onClick: handleClick,
@@ -5794,7 +5920,7 @@ var DropdownItem = (_a) => {
5794
5920
  "text-grey-10 cursor-not-allowed": disabled,
5795
5921
  "text-primary-70 hover:text-primary-80": color === "danger" && !disabled
5796
5922
  })
5797
- }), tooltip ? /* @__PURE__ */ React53.createElement(Tooltip, {
5923
+ }), tooltip ? /* @__PURE__ */ React55.createElement(Tooltip, {
5798
5924
  content: tooltip,
5799
5925
  placement: tooltipPlacement,
5800
5926
  inline: false
@@ -5804,7 +5930,7 @@ Dropdown.Menu = DropdownMenu;
5804
5930
  Dropdown.Item = DropdownItem;
5805
5931
 
5806
5932
  // src/components/DropdownMenu/DropdownMenu.tsx
5807
- import React57 from "react";
5933
+ import React59 from "react";
5808
5934
  import { useFilter } from "@react-aria/i18n";
5809
5935
  import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
5810
5936
  import { useMenu, useMenuItem, useMenuSection, useMenuTrigger } from "@react-aria/menu";
@@ -5816,8 +5942,8 @@ import { useMenuTriggerState } from "@react-stately/menu";
5816
5942
  import { useTreeState } from "@react-stately/tree";
5817
5943
 
5818
5944
  // src/components/Input/Input.tsx
5819
- import React55, { forwardRef, useImperativeHandle, useRef as useRef5, useState as useState6 } from "react";
5820
- import omit7 from "lodash/omit";
5945
+ import React57, { forwardRef, useImperativeHandle, useRef as useRef5, useState as useState6 } from "react";
5946
+ import omit8 from "lodash/omit";
5821
5947
  import toString from "lodash/toString";
5822
5948
  import uniqueId3 from "lodash/uniqueId";
5823
5949
 
@@ -5833,31 +5959,31 @@ var getCommonInputStyles = ({ readOnly, valid }) => tw(
5833
5959
  );
5834
5960
 
5835
5961
  // src/utils/form/InputAdornment/InputAdornment.tsx
5836
- import React54 from "react";
5962
+ import React56 from "react";
5837
5963
  var import_cross4 = __toESM(require_cross());
5838
5964
  var import_error3 = __toESM(require_error());
5839
5965
  var import_search2 = __toESM(require_search());
5840
5966
  var import_tick3 = __toESM(require_tick());
5841
5967
  var InputAdornment = ({ placement = "right", className, dense, children }) => {
5842
- return /* @__PURE__ */ React54.createElement("span", {
5968
+ return /* @__PURE__ */ React56.createElement("span", {
5843
5969
  className: classNames(className, "absolute inset-y-0 grow-0 text-grey-40 flex items-center mx-3", {
5844
5970
  "right-0": placement === "right",
5845
5971
  "left-0": placement === "left",
5846
5972
  "typography-small": dense,
5847
5973
  "typography-default-strong": !dense
5848
5974
  })
5849
- }, /* @__PURE__ */ React54.createElement(Flexbox, {
5975
+ }, /* @__PURE__ */ React56.createElement(Flexbox, {
5850
5976
  gap: "3",
5851
5977
  wrap: "wrap"
5852
5978
  }, children));
5853
5979
  };
5854
- var SearchIcon = ({ onClick }) => /* @__PURE__ */ React54.createElement(Icon, {
5980
+ var SearchIcon = ({ onClick }) => /* @__PURE__ */ React56.createElement(Icon, {
5855
5981
  icon: import_search2.default,
5856
5982
  color: "grey-30",
5857
5983
  "data-testid": "icon-search",
5858
5984
  onClick
5859
5985
  });
5860
- var ResetIcon = ({ onClick }) => /* @__PURE__ */ React54.createElement(Icon, {
5986
+ var ResetIcon = ({ onClick }) => /* @__PURE__ */ React56.createElement(Icon, {
5861
5987
  className: "hover:cursor-pointer",
5862
5988
  icon: import_cross4.default,
5863
5989
  color: "grey-30",
@@ -5887,7 +6013,7 @@ var createInput = (displayName, opts = {}) => {
5887
6013
  "readOnly"
5888
6014
  ]);
5889
6015
  var _a2;
5890
- const inputRef = React55.useRef(null);
6016
+ const inputRef = React57.useRef(null);
5891
6017
  useImperativeHandle(ref, () => inputRef.current);
5892
6018
  const handleReset = () => {
5893
6019
  var _a3;
@@ -5900,11 +6026,11 @@ var createInput = (displayName, opts = {}) => {
5900
6026
  el.focus();
5901
6027
  }
5902
6028
  };
5903
- return /* @__PURE__ */ React55.createElement("span", {
6029
+ return /* @__PURE__ */ React57.createElement("span", {
5904
6030
  className: tw("relative block")
5905
- }, opts.adornment && /* @__PURE__ */ React55.createElement(InputAdornment, {
6031
+ }, opts.adornment && /* @__PURE__ */ React57.createElement(InputAdornment, {
5906
6032
  placement: "left"
5907
- }, opts.adornment), /* @__PURE__ */ React55.createElement("input", __spreadProps(__spreadValues({
6033
+ }, opts.adornment), /* @__PURE__ */ React57.createElement("input", __spreadProps(__spreadValues({
5908
6034
  ref: inputRef,
5909
6035
  type
5910
6036
  }, props), {
@@ -5919,20 +6045,20 @@ var createInput = (displayName, opts = {}) => {
5919
6045
  getCommonInputStyles({ readOnly, valid }),
5920
6046
  props.className
5921
6047
  )
5922
- })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React55.createElement(InputAdornment, null, /* @__PURE__ */ React55.createElement(ResetIcon, {
6048
+ })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React57.createElement(InputAdornment, null, /* @__PURE__ */ React57.createElement(ResetIcon, {
5923
6049
  onClick: handleReset
5924
- })), !opts.canReset && endAdornment && /* @__PURE__ */ React55.createElement(InputAdornment, null, endAdornment));
6050
+ })), !opts.canReset && endAdornment && /* @__PURE__ */ React57.createElement(InputAdornment, null, endAdornment));
5925
6051
  }
5926
6052
  );
5927
6053
  InputComponent.displayName = displayName;
5928
- InputComponent.Skeleton = () => /* @__PURE__ */ React55.createElement(Skeleton, {
6054
+ InputComponent.Skeleton = () => /* @__PURE__ */ React57.createElement(Skeleton, {
5929
6055
  height: 38
5930
6056
  });
5931
6057
  return InputComponent;
5932
6058
  };
5933
6059
  var InputBase = createInput("InputBase");
5934
- var SearchInput = createInput("SearchInput", { adornment: /* @__PURE__ */ React55.createElement(SearchIcon, null), canReset: true });
5935
- var Input2 = React55.forwardRef((_a, ref) => {
6060
+ var SearchInput = createInput("SearchInput", { adornment: /* @__PURE__ */ React57.createElement(SearchIcon, null), canReset: true });
6061
+ var Input2 = React57.forwardRef((_a, ref) => {
5936
6062
  var _b = _a, { readOnly = false } = _b, props = __objRest(_b, ["readOnly"]);
5937
6063
  var _a2, _b2, _c;
5938
6064
  const [value, setValue] = useState6((_b2 = (_a2 = props.value) != null ? _a2 : props.defaultValue) != null ? _b2 : "");
@@ -5940,13 +6066,13 @@ var Input2 = React55.forwardRef((_a, ref) => {
5940
6066
  const errorMessageId = uniqueId3();
5941
6067
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
5942
6068
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
5943
- const baseProps = omit7(props, Object.keys(labelControlProps));
5944
- return /* @__PURE__ */ React55.createElement(LabelControl, __spreadValues({
6069
+ const baseProps = omit8(props, Object.keys(labelControlProps));
6070
+ return /* @__PURE__ */ React57.createElement(LabelControl, __spreadValues({
5945
6071
  id: `${id.current}-label`,
5946
6072
  htmlFor: id.current,
5947
6073
  messageId: errorMessageId,
5948
6074
  length: value !== void 0 ? toString(value).length : void 0
5949
- }, labelControlProps), /* @__PURE__ */ React55.createElement(InputBase, __spreadProps(__spreadValues(__spreadValues({
6075
+ }, labelControlProps), /* @__PURE__ */ React57.createElement(InputBase, __spreadProps(__spreadValues(__spreadValues({
5950
6076
  ref
5951
6077
  }, baseProps), errorProps), {
5952
6078
  id: id.current,
@@ -5964,16 +6090,16 @@ var Input2 = React55.forwardRef((_a, ref) => {
5964
6090
  })));
5965
6091
  });
5966
6092
  Input2.displayName = "Input";
5967
- Input2.Skeleton = () => /* @__PURE__ */ React55.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React55.createElement(InputBase.Skeleton, null));
6093
+ Input2.Skeleton = () => /* @__PURE__ */ React57.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React57.createElement(InputBase.Skeleton, null));
5968
6094
  Input2.Skeleton.displayName = "Input.Skeleton";
5969
6095
 
5970
6096
  // src/common/DropdownMenu/DropdownMenu.tsx
5971
- import React56 from "react";
6097
+ import React58 from "react";
5972
6098
  var import_tick4 = __toESM(require_tick());
5973
- var DropdownMenu2 = React56.forwardRef(
6099
+ var DropdownMenu2 = React58.forwardRef(
5974
6100
  (_a, ref) => {
5975
6101
  var _b = _a, { maxHeight = "450px", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["maxHeight", "minWidth", "maxWidth", "className", "children"]);
5976
- return /* @__PURE__ */ React56.createElement("div", __spreadValues({
6102
+ return /* @__PURE__ */ React58.createElement("div", __spreadValues({
5977
6103
  ref,
5978
6104
  style: { maxHeight, minWidth, maxWidth },
5979
6105
  className: classNames(
@@ -5983,25 +6109,25 @@ var DropdownMenu2 = React56.forwardRef(
5983
6109
  }, props), children);
5984
6110
  }
5985
6111
  );
5986
- var ContentContainer = ({ children }) => /* @__PURE__ */ React56.createElement("div", {
6112
+ var ContentContainer = ({ children }) => /* @__PURE__ */ React58.createElement("div", {
5987
6113
  className: tw("p-3")
5988
6114
  }, children);
5989
6115
  DropdownMenu2.ContentContainer = ContentContainer;
5990
- var List2 = React56.forwardRef(
6116
+ var List2 = React58.forwardRef(
5991
6117
  (_a, ref) => {
5992
6118
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
5993
- return /* @__PURE__ */ React56.createElement("ul", __spreadValues({
6119
+ return /* @__PURE__ */ React58.createElement("ul", __spreadValues({
5994
6120
  ref
5995
6121
  }, props), children);
5996
6122
  }
5997
6123
  );
5998
6124
  DropdownMenu2.List = List2;
5999
- var Group2 = React56.forwardRef(
6125
+ var Group2 = React58.forwardRef(
6000
6126
  (_a, ref) => {
6001
6127
  var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
6002
- return /* @__PURE__ */ React56.createElement("li", __spreadValues({
6128
+ return /* @__PURE__ */ React58.createElement("li", __spreadValues({
6003
6129
  ref
6004
- }, props), title && /* @__PURE__ */ React56.createElement("div", __spreadValues({
6130
+ }, props), title && /* @__PURE__ */ React58.createElement("div", __spreadValues({
6005
6131
  className: classNames(className, "p-3 text-grey-40 uppercase cursor-default typography-caption", {
6006
6132
  "text-grey-20": props.disabled
6007
6133
  })
@@ -6009,10 +6135,10 @@ var Group2 = React56.forwardRef(
6009
6135
  }
6010
6136
  );
6011
6137
  DropdownMenu2.Group = Group2;
6012
- var Item3 = React56.forwardRef(
6138
+ var Item3 = React58.forwardRef(
6013
6139
  (_a, ref) => {
6014
6140
  var _b = _a, { kind, highlighted, selected, className, icon, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "children"]);
6015
- return /* @__PURE__ */ React56.createElement("li", __spreadValues({
6141
+ return /* @__PURE__ */ React58.createElement("li", __spreadValues({
6016
6142
  ref,
6017
6143
  className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
6018
6144
  "cursor-pointer hover:bg-grey-0": !props.disabled,
@@ -6020,30 +6146,30 @@ var Item3 = React56.forwardRef(
6020
6146
  "text-primary-80": kind === "action",
6021
6147
  "text-grey-20 cursor-not-allowed": props.disabled
6022
6148
  })
6023
- }, props), icon && /* @__PURE__ */ React56.createElement(InlineIcon, {
6149
+ }, props), icon && /* @__PURE__ */ React58.createElement(InlineIcon, {
6024
6150
  icon
6025
- }), /* @__PURE__ */ React56.createElement("span", {
6151
+ }), /* @__PURE__ */ React58.createElement("span", {
6026
6152
  className: tw("grow")
6027
- }, children), selected && /* @__PURE__ */ React56.createElement(InlineIcon, {
6153
+ }, children), selected && /* @__PURE__ */ React58.createElement(InlineIcon, {
6028
6154
  icon: import_tick4.default
6029
6155
  }));
6030
6156
  }
6031
6157
  );
6032
6158
  DropdownMenu2.Item = Item3;
6033
- var Description = ({ disabled, children }) => /* @__PURE__ */ React56.createElement(Typography2.Caption, {
6159
+ var Description = ({ disabled, children }) => /* @__PURE__ */ React58.createElement(Typography2.Caption, {
6034
6160
  color: disabled ? "grey-20" : "grey-40"
6035
6161
  }, children);
6036
6162
  DropdownMenu2.Description = Description;
6037
6163
  var Separator = (_a) => {
6038
6164
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6039
- return /* @__PURE__ */ React56.createElement("li", __spreadProps(__spreadValues({}, props), {
6165
+ return /* @__PURE__ */ React58.createElement("li", __spreadProps(__spreadValues({}, props), {
6040
6166
  className: classNames(className, tw("m-3 block bg-grey-5 h-[1px]"))
6041
6167
  }));
6042
6168
  };
6043
6169
  DropdownMenu2.Separator = Separator;
6044
6170
  var EmptyStateContainer2 = (_a) => {
6045
6171
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6046
- return /* @__PURE__ */ React56.createElement("div", __spreadValues({
6172
+ return /* @__PURE__ */ React58.createElement("div", __spreadValues({
6047
6173
  className: classNames(tw("border border-dashed border-grey-10 p-3"), className)
6048
6174
  }, props), children);
6049
6175
  };
@@ -6098,8 +6224,8 @@ var DropdownMenu3 = (_a) => {
6098
6224
  "footer",
6099
6225
  "children"
6100
6226
  ]);
6101
- const triggerRef = React57.useRef(null);
6102
- const overlayRef = React57.useRef(null);
6227
+ const triggerRef = React59.useRef(null);
6228
+ const overlayRef = React59.useRef(null);
6103
6229
  const [trigger, items] = extractTriggerAndItems(children);
6104
6230
  const state = useMenuTriggerState(props);
6105
6231
  const { menuTriggerProps, menuProps } = useMenuTrigger({}, state, triggerRef);
@@ -6110,17 +6236,17 @@ var DropdownMenu3 = (_a) => {
6110
6236
  shouldFlip: true,
6111
6237
  isOpen: state.isOpen
6112
6238
  });
6113
- return /* @__PURE__ */ React57.createElement("div", null, /* @__PURE__ */ React57.createElement(PressResponder2, __spreadValues({
6239
+ return /* @__PURE__ */ React59.createElement("div", null, /* @__PURE__ */ React59.createElement(PressResponder2, __spreadValues({
6114
6240
  ref: triggerRef,
6115
6241
  onPress: () => state.toggle()
6116
- }, menuTriggerProps), /* @__PURE__ */ React57.createElement(TriggerWrapper, null, trigger.props.children)), /* @__PURE__ */ React57.createElement(PopoverWrapper, __spreadValues({
6242
+ }, menuTriggerProps), /* @__PURE__ */ React59.createElement(TriggerWrapper, null, trigger.props.children)), /* @__PURE__ */ React59.createElement(PopoverWrapper, __spreadValues({
6117
6243
  ref: overlayRef,
6118
6244
  isDismissable: true,
6119
6245
  autoFocus: true,
6120
6246
  containFocus: true,
6121
6247
  isOpen: state.isOpen,
6122
6248
  onClose: state.close
6123
- }, overlayProps), /* @__PURE__ */ React57.createElement(MenuWrapper, __spreadValues({
6249
+ }, overlayProps), /* @__PURE__ */ React59.createElement(MenuWrapper, __spreadValues({
6124
6250
  onAction,
6125
6251
  selectionMode,
6126
6252
  selection,
@@ -6141,13 +6267,13 @@ DropdownMenu3.Item = Item4;
6141
6267
  DropdownMenu3.Section = Section;
6142
6268
  var TriggerWrapper = (_a) => {
6143
6269
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
6144
- const ref = React57.useRef(null);
6270
+ const ref = React59.useRef(null);
6145
6271
  const { pressProps } = usePress2(__spreadProps(__spreadValues({}, props), { ref }));
6146
- const trigger = React57.Children.only(children);
6147
- if (!trigger || !React57.isValidElement(trigger)) {
6272
+ const trigger = React59.Children.only(children);
6273
+ if (!trigger || !React59.isValidElement(trigger)) {
6148
6274
  throw new Error("<DropdownMenu.Trigger> must have valid child");
6149
6275
  }
6150
- return React57.cloneElement(trigger, __spreadValues({ ref }, mergeProps4(pressProps, props)));
6276
+ return React59.cloneElement(trigger, __spreadValues({ ref }, mergeProps4(pressProps, props)));
6151
6277
  };
6152
6278
  var isSectionNode = (item) => item.type === "section";
6153
6279
  var isItemNode = (item) => item.type === "item";
@@ -6169,7 +6295,7 @@ var MenuWrapper = (_a) => {
6169
6295
  "header",
6170
6296
  "footer"
6171
6297
  ]);
6172
- const ref = React57.useRef(null);
6298
+ const ref = React59.useRef(null);
6173
6299
  const disabledKeys = getDisabledItemKeys(props.children);
6174
6300
  const state = useTreeState(__spreadValues({
6175
6301
  disabledKeys,
@@ -6177,30 +6303,30 @@ var MenuWrapper = (_a) => {
6177
6303
  }, props));
6178
6304
  const { menuProps } = useMenu(props, state, ref);
6179
6305
  const { contains } = useFilter({ sensitivity: "base" });
6180
- const [search, setSearch] = React57.useState("");
6181
- const filteredCollection = React57.useMemo(
6306
+ const [search, setSearch] = React59.useState("");
6307
+ const filteredCollection = React59.useMemo(
6182
6308
  () => searchable ? filterCollection(state.collection, search, contains) : state.collection,
6183
6309
  [state.collection, search, contains]
6184
6310
  );
6185
- return /* @__PURE__ */ React57.createElement(DropdownMenu2, {
6311
+ return /* @__PURE__ */ React59.createElement(DropdownMenu2, {
6186
6312
  minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
6187
6313
  maxWidth: maxWidth !== void 0 ? `${maxWidth}px` : void 0
6188
- }, header, /* @__PURE__ */ React57.createElement(DropdownMenu2.ContentContainer, null, searchable && /* @__PURE__ */ React57.createElement(SearchInput, {
6314
+ }, header, /* @__PURE__ */ React59.createElement(DropdownMenu2.ContentContainer, null, searchable && /* @__PURE__ */ React59.createElement(SearchInput, {
6189
6315
  "aria-label": "search",
6190
6316
  value: search,
6191
6317
  onChange: (e) => setSearch(e.target.value),
6192
6318
  className: tw("mb-5")
6193
- }), filteredCollection.size === 0 && emptyState && /* @__PURE__ */ React57.createElement(DropdownMenu2.EmptyStateContainer, null, emptyState), /* @__PURE__ */ React57.createElement(DropdownMenu2.List, __spreadValues({
6319
+ }), filteredCollection.size === 0 && emptyState && /* @__PURE__ */ React59.createElement(DropdownMenu2.EmptyStateContainer, null, emptyState), /* @__PURE__ */ React59.createElement(DropdownMenu2.List, __spreadValues({
6194
6320
  ref
6195
6321
  }, menuProps), Array.from(filteredCollection).map((item) => {
6196
6322
  if (isSectionNode(item)) {
6197
- return /* @__PURE__ */ React57.createElement(SectionWrapper, {
6323
+ return /* @__PURE__ */ React59.createElement(SectionWrapper, {
6198
6324
  key: item.key,
6199
6325
  section: item,
6200
6326
  state
6201
6327
  });
6202
6328
  } else if (isItemNode(item)) {
6203
- return /* @__PURE__ */ React57.createElement(ItemWrapper, {
6329
+ return /* @__PURE__ */ React59.createElement(ItemWrapper, {
6204
6330
  key: item.key,
6205
6331
  item,
6206
6332
  state
@@ -6209,14 +6335,14 @@ var MenuWrapper = (_a) => {
6209
6335
  }))), footer);
6210
6336
  };
6211
6337
  var ItemWrapper = ({ item, state }) => {
6212
- const ref = React57.useRef(null);
6338
+ const ref = React59.useRef(null);
6213
6339
  const { menuItemProps, descriptionProps, isSelected, isFocused, isDisabled } = useMenuItem(
6214
6340
  { key: item.key },
6215
6341
  state,
6216
6342
  ref
6217
6343
  );
6218
6344
  const { icon, description, kind = "default" } = item.props;
6219
- return /* @__PURE__ */ React57.createElement(DropdownMenu2.Item, __spreadProps(__spreadValues({
6345
+ return /* @__PURE__ */ React59.createElement(DropdownMenu2.Item, __spreadProps(__spreadValues({
6220
6346
  ref
6221
6347
  }, menuItemProps), {
6222
6348
  kind,
@@ -6224,7 +6350,7 @@ var ItemWrapper = ({ item, state }) => {
6224
6350
  highlighted: isFocused,
6225
6351
  disabled: isDisabled,
6226
6352
  icon
6227
- }), item.rendered, description && /* @__PURE__ */ React57.createElement(DropdownMenu2.Description, __spreadValues({
6353
+ }), item.rendered, description && /* @__PURE__ */ React59.createElement(DropdownMenu2.Description, __spreadValues({
6228
6354
  disabled: isDisabled
6229
6355
  }, descriptionProps), description));
6230
6356
  };
@@ -6236,24 +6362,24 @@ var SectionWrapper = ({ section, state }) => {
6236
6362
  const { separatorProps } = useSeparator({
6237
6363
  elementType: "li"
6238
6364
  });
6239
- return /* @__PURE__ */ React57.createElement(React57.Fragment, null, section.key !== state.collection.getFirstKey() && /* @__PURE__ */ React57.createElement(DropdownMenu2.Separator, __spreadValues({}, separatorProps)), /* @__PURE__ */ React57.createElement(DropdownMenu2.Group, __spreadValues({
6365
+ 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({
6240
6366
  title: section.rendered,
6241
6367
  titleProps: headingProps
6242
- }, itemProps), /* @__PURE__ */ React57.createElement("ul", __spreadValues({}, groupProps), Array.from(section.childNodes).map((node) => /* @__PURE__ */ React57.createElement(ItemWrapper, {
6368
+ }, itemProps), /* @__PURE__ */ React59.createElement("ul", __spreadValues({}, groupProps), Array.from(section.childNodes).map((node) => /* @__PURE__ */ React59.createElement(ItemWrapper, {
6243
6369
  key: node.key,
6244
6370
  item: node,
6245
6371
  state
6246
6372
  })))));
6247
6373
  };
6248
6374
  var extractTriggerAndItems = (children) => {
6249
- const [trigger, items] = React57.Children.toArray(children);
6375
+ const [trigger, items] = React59.Children.toArray(children);
6250
6376
  if (!isComponentType(trigger, MenuTrigger) || !isComponentType(items, MenuItems)) {
6251
6377
  throw new Error("<DropdownMenu> must have <DropdownMenu.Trigger> and <DropdownMenu.Items> defined");
6252
6378
  }
6253
6379
  return [trigger, items];
6254
6380
  };
6255
6381
  var getDisabledItemKeys = (children) => {
6256
- const keys = React57.Children.map(children, (child) => {
6382
+ const keys = React59.Children.map(children, (child) => {
6257
6383
  var _a, _b;
6258
6384
  if (!child || typeof child === "function") {
6259
6385
  return null;
@@ -6270,11 +6396,11 @@ var getDisabledItemKeys = (children) => {
6270
6396
  };
6271
6397
 
6272
6398
  // src/components/EmptyState/EmptyState.tsx
6273
- import React59 from "react";
6274
- import omit8 from "lodash/omit";
6399
+ import React61 from "react";
6400
+ import omit9 from "lodash/omit";
6275
6401
 
6276
6402
  // src/components/Flexbox/FlexboxItem.tsx
6277
- import React58 from "react";
6403
+ import React60 from "react";
6278
6404
  var FlexboxItem = Tailwindify(
6279
6405
  ({ htmlTag = "div", className, style, children, display, flex, grow, shrink, order, alignSelf }) => {
6280
6406
  const hookStyle = useStyle({
@@ -6286,7 +6412,7 @@ var FlexboxItem = Tailwindify(
6286
6412
  alignSelf
6287
6413
  });
6288
6414
  const HtmlElement = htmlTag;
6289
- return /* @__PURE__ */ React58.createElement(HtmlElement, {
6415
+ return /* @__PURE__ */ React60.createElement(HtmlElement, {
6290
6416
  style: __spreadValues(__spreadValues({}, hookStyle), style),
6291
6417
  className
6292
6418
  }, children);
@@ -6343,7 +6469,7 @@ var EmptyState = ({
6343
6469
  borderStyle = "dashed"
6344
6470
  }) => {
6345
6471
  const template = layoutStyle(layout);
6346
- return /* @__PURE__ */ React59.createElement(Box, {
6472
+ return /* @__PURE__ */ React61.createElement(Box, {
6347
6473
  className: classNames(
6348
6474
  tw("rounded", {
6349
6475
  "border border-dashed": borderStyle === "dashed",
@@ -6355,38 +6481,38 @@ var EmptyState = ({
6355
6481
  backgroundColor: "transparent",
6356
6482
  borderColor: "grey-10",
6357
6483
  padding: "9"
6358
- }, /* @__PURE__ */ React59.createElement(Flexbox, {
6484
+ }, /* @__PURE__ */ React61.createElement(Flexbox, {
6359
6485
  direction: template.layout,
6360
6486
  justifyContent: template.justifyContent,
6361
6487
  alignItems: template.layout === "row" ? "center" : template.alignItems,
6362
6488
  colGap: "l5",
6363
6489
  rowGap: "8"
6364
- }, image && /* @__PURE__ */ React59.createElement(FlexboxItem, null, /* @__PURE__ */ React59.createElement("img", {
6490
+ }, image && /* @__PURE__ */ React61.createElement(FlexboxItem, null, /* @__PURE__ */ React61.createElement("img", {
6365
6491
  src: image,
6366
6492
  alt: imageAlt,
6367
6493
  style: { width: imageWidth ? `${imageWidth}px` : void 0, height: "auto" }
6368
- })), /* @__PURE__ */ React59.createElement(Flexbox, {
6494
+ })), /* @__PURE__ */ React61.createElement(Flexbox, {
6369
6495
  style: { maxWidth: "610px" },
6370
6496
  direction: "column",
6371
6497
  justifyContent: template.justifyContent,
6372
6498
  alignItems: template.alignItems
6373
- }, /* @__PURE__ */ React59.createElement(Typography2, {
6499
+ }, /* @__PURE__ */ React61.createElement(Typography2, {
6374
6500
  variant: "heading",
6375
6501
  htmlTag: "h2"
6376
- }, title), description && /* @__PURE__ */ React59.createElement(Box, {
6502
+ }, title), description && /* @__PURE__ */ React61.createElement(Box, {
6377
6503
  marginTop: "5"
6378
- }, /* @__PURE__ */ React59.createElement(Typography2, {
6504
+ }, /* @__PURE__ */ React61.createElement(Typography2, {
6379
6505
  variant: "default",
6380
6506
  color: "grey-60"
6381
- }, description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React59.createElement(Flexbox, {
6507
+ }, description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React61.createElement(Flexbox, {
6382
6508
  marginTop: "7",
6383
6509
  gap: "4",
6384
6510
  justifyContent: "center",
6385
6511
  alignItems: "center",
6386
6512
  wrap: "wrap"
6387
- }, primaryAction && /* @__PURE__ */ React59.createElement(PrimaryButton, __spreadValues({}, omit8(primaryAction, "text")), primaryAction.text), secondaryAction && /* @__PURE__ */ React59.createElement(SecondaryButton, __spreadValues({}, omit8(secondaryAction, "text")), secondaryAction.text)), footer && /* @__PURE__ */ React59.createElement(Box, {
6513
+ }, 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, {
6388
6514
  marginTop: "7"
6389
- }, /* @__PURE__ */ React59.createElement(Typography2, {
6515
+ }, /* @__PURE__ */ React61.createElement(Typography2, {
6390
6516
  htmlTag: "div",
6391
6517
  variant: "small",
6392
6518
  color: "grey-60"
@@ -6394,7 +6520,7 @@ var EmptyState = ({
6394
6520
  };
6395
6521
 
6396
6522
  // src/components/Grid/GridItem.tsx
6397
- import React60 from "react";
6523
+ import React62 from "react";
6398
6524
  var GridItem = Tailwindify(
6399
6525
  ({
6400
6526
  htmlTag = "div",
@@ -6425,7 +6551,7 @@ var GridItem = Tailwindify(
6425
6551
  gridRowEnd: rowEnd
6426
6552
  });
6427
6553
  const HtmlElement = htmlTag;
6428
- return /* @__PURE__ */ React60.createElement(HtmlElement, {
6554
+ return /* @__PURE__ */ React62.createElement(HtmlElement, {
6429
6555
  style: __spreadValues(__spreadValues({}, hookStyle), style),
6430
6556
  className
6431
6557
  }, children);
@@ -6433,23 +6559,23 @@ var GridItem = Tailwindify(
6433
6559
  );
6434
6560
 
6435
6561
  // src/components/List/List.tsx
6436
- import React61 from "react";
6437
- var List = ({ items, renderItem, container = React61.Fragment }) => {
6562
+ import React63 from "react";
6563
+ var List = ({ items, renderItem, container = React63.Fragment }) => {
6438
6564
  const Component = container;
6439
- return /* @__PURE__ */ React61.createElement(Component, null, items.map(renderItem));
6565
+ return /* @__PURE__ */ React63.createElement(Component, null, items.map(renderItem));
6440
6566
  };
6441
6567
 
6442
6568
  // src/components/ListItem/ListItem.tsx
6443
- import React62 from "react";
6569
+ import React64 from "react";
6444
6570
  var ListItem = ({ name, icon, active = false }) => {
6445
- return /* @__PURE__ */ React62.createElement(Flexbox, {
6571
+ return /* @__PURE__ */ React64.createElement(Flexbox, {
6446
6572
  alignItems: "center"
6447
- }, /* @__PURE__ */ React62.createElement(Typography2, {
6573
+ }, /* @__PURE__ */ React64.createElement(Typography2, {
6448
6574
  variant: active ? "small-strong" : "small",
6449
6575
  color: "grey-70",
6450
6576
  htmlTag: "span",
6451
6577
  className: `px-4 py-2 rounded-full ${active ? "bg-grey-5" : "hover:bg-grey-0"}`
6452
- }, /* @__PURE__ */ React62.createElement("img", {
6578
+ }, /* @__PURE__ */ React64.createElement("img", {
6453
6579
  src: icon,
6454
6580
  alt: name,
6455
6581
  className: "inline mr-4",
@@ -6459,28 +6585,28 @@ var ListItem = ({ name, icon, active = false }) => {
6459
6585
  };
6460
6586
 
6461
6587
  // src/components/Modal/Modal.tsx
6462
- import React64 from "react";
6588
+ import React66 from "react";
6463
6589
  import { useDialog as useDialog2 } from "@react-aria/dialog";
6464
6590
  import { FocusScope as FocusScope3 } from "@react-aria/focus";
6465
6591
  import { Overlay as Overlay2, useModalOverlay as useModalOverlay2 } from "@react-aria/overlays";
6466
6592
  import { useId as useId2 } from "@react-aria/utils";
6467
6593
  import { useOverlayTriggerState as useOverlayTriggerState4 } from "@react-stately/overlays";
6468
6594
  import castArray from "lodash/castArray";
6469
- import omit9 from "lodash/omit";
6595
+ import omit10 from "lodash/omit";
6470
6596
 
6471
6597
  // src/components/Tabs/Tabs.tsx
6472
- import React63, { useEffect as useEffect5, useLayoutEffect as useLayoutEffect2, useRef as useRef6, useState as useState7 } from "react";
6598
+ import React65, { useEffect as useEffect5, useLayoutEffect as useLayoutEffect2, useRef as useRef6, useState as useState7 } from "react";
6473
6599
  import isNumber4 from "lodash/isNumber";
6474
6600
  import kebabCase from "lodash/kebabCase";
6475
6601
  var import_chevronLeft2 = __toESM(require_chevronLeft());
6476
6602
  var import_chevronRight2 = __toESM(require_chevronRight());
6477
6603
  var import_warningSign3 = __toESM(require_warningSign());
6478
6604
  var isTabComponent = (c) => {
6479
- return React63.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
6605
+ return React65.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
6480
6606
  };
6481
- var Tab = React63.forwardRef(
6607
+ var Tab = React65.forwardRef(
6482
6608
  ({ className, id, title, children }, ref) => {
6483
- return /* @__PURE__ */ React63.createElement("div", {
6609
+ return /* @__PURE__ */ React65.createElement("div", {
6484
6610
  ref,
6485
6611
  id: `${id != null ? id : kebabCase(title)}-panel`,
6486
6612
  className,
@@ -6492,14 +6618,14 @@ var Tab = React63.forwardRef(
6492
6618
  );
6493
6619
  var TabContainer = (_a) => {
6494
6620
  var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
6495
- return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
6621
+ return /* @__PURE__ */ React65.createElement("div", __spreadProps(__spreadValues({}, rest), {
6496
6622
  className: classNames("py-6 z-0", className)
6497
6623
  }), children);
6498
6624
  };
6499
6625
  var ModalTab = Tab;
6500
6626
  var ModalTabContainer = TabContainer;
6501
6627
  var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
6502
- const Tab2 = React63.forwardRef(
6628
+ const Tab2 = React65.forwardRef(
6503
6629
  (_a, ref) => {
6504
6630
  var _b = _a, {
6505
6631
  id,
@@ -6529,17 +6655,17 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
6529
6655
  const _id = id != null ? id : kebabCase(title);
6530
6656
  let statusIcon = void 0;
6531
6657
  if (status === "warning") {
6532
- statusIcon = /* @__PURE__ */ React63.createElement(InlineIcon, {
6658
+ statusIcon = /* @__PURE__ */ React65.createElement(InlineIcon, {
6533
6659
  icon: import_warningSign3.default,
6534
6660
  color: "warning-80"
6535
6661
  });
6536
6662
  } else if (status === "error") {
6537
- statusIcon = /* @__PURE__ */ React63.createElement(InlineIcon, {
6663
+ statusIcon = /* @__PURE__ */ React65.createElement(InlineIcon, {
6538
6664
  icon: import_warningSign3.default,
6539
6665
  color: "error-50"
6540
6666
  });
6541
6667
  }
6542
- const tab = /* @__PURE__ */ React63.createElement(Component, __spreadValues({
6668
+ const tab = /* @__PURE__ */ React65.createElement(Component, __spreadValues({
6543
6669
  ref,
6544
6670
  id: `${_id}-tab`,
6545
6671
  onClick: () => !disabled && onSelected(value != null ? value : index),
@@ -6556,24 +6682,24 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
6556
6682
  "aria-selected": selected,
6557
6683
  "aria-controls": `${_id}-panel`,
6558
6684
  tabIndex: disabled ? void 0 : 0
6559
- }, rest), /* @__PURE__ */ React63.createElement(Typography2, {
6685
+ }, rest), /* @__PURE__ */ React65.createElement(Typography2, {
6560
6686
  htmlTag: "div",
6561
6687
  variant: "small",
6562
6688
  color: selected ? "primary-80" : disabled ? "grey-20" : "current",
6563
6689
  className: tw("inline-flex items-center gap-3")
6564
- }, /* @__PURE__ */ React63.createElement("span", {
6690
+ }, /* @__PURE__ */ React65.createElement("span", {
6565
6691
  className: tw("whitespace-nowrap")
6566
- }, title), isNumber4(badge) && /* @__PURE__ */ React63.createElement(Typography2, {
6692
+ }, title), isNumber4(badge) && /* @__PURE__ */ React65.createElement(Typography2, {
6567
6693
  htmlTag: "span",
6568
6694
  variant: "small",
6569
6695
  color: selected ? "primary-80" : "grey-5",
6570
6696
  className: "leading-none"
6571
- }, /* @__PURE__ */ React63.createElement(TabBadge, {
6697
+ }, /* @__PURE__ */ React65.createElement(TabBadge, {
6572
6698
  kind: "filled",
6573
6699
  value: badge,
6574
6700
  textClassname: classNames({ "text-white": selected, "text-grey-50": !selected })
6575
6701
  })), statusIcon));
6576
- return tooltip ? /* @__PURE__ */ React63.createElement(Tooltip, {
6702
+ return tooltip ? /* @__PURE__ */ React65.createElement(Tooltip, {
6577
6703
  content: tooltip
6578
6704
  }, tab) : tab;
6579
6705
  }
@@ -6582,11 +6708,12 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
6582
6708
  return Tab2;
6583
6709
  };
6584
6710
  var TabItem = asTabItem("button", "TabItem");
6711
+ var CARET_OFFSET = 24;
6585
6712
  var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderChildren) => {
6586
6713
  const Tabs2 = (props) => {
6587
6714
  var _a, _b;
6588
6715
  const { className, value, defaultValue, onChange, children } = props;
6589
- const childArr = React63.Children.toArray(children);
6716
+ const childArr = React65.Children.toArray(children);
6590
6717
  const firstTab = childArr[0];
6591
6718
  const firstTabValue = isTabComponent(firstTab) ? firstTab.props.value : -1;
6592
6719
  const [selected, setSelected] = useState7((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
@@ -6595,25 +6722,54 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6595
6722
  const parentRef = useRef6(null);
6596
6723
  const containerRef = useRef6(null);
6597
6724
  const tabsRef = useRef6(null);
6725
+ const revealSelectedTab = ({ smooth }) => {
6726
+ var _a2, _b2;
6727
+ const container = containerRef.current;
6728
+ const tabs = tabsRef.current;
6729
+ const values = React65.Children.map(
6730
+ children,
6731
+ (tab, i) => {
6732
+ var _a3;
6733
+ return (_a3 = tab == null ? void 0 : tab.props.value) != null ? _a3 : i;
6734
+ }
6735
+ );
6736
+ const idx = (_a2 = values == null ? void 0 : values.findIndex((val) => value === val)) != null ? _a2 : -1;
6737
+ const child = Array.from((_b2 = tabs == null ? void 0 : tabs.childNodes) != null ? _b2 : [])[idx];
6738
+ if (!container || !(child instanceof HTMLElement)) {
6739
+ return;
6740
+ }
6741
+ const { width: containerWidth, x: containerX } = container.getBoundingClientRect();
6742
+ const { x, width } = child.getBoundingClientRect();
6743
+ const isInViewPort = x >= containerX && x + width <= containerX + containerWidth;
6744
+ if (!isInViewPort) {
6745
+ container.scrollTo({
6746
+ left: container.scrollLeft + Math.ceil(x + width + CARET_OFFSET - containerX - containerWidth),
6747
+ behavior: smooth ? "smooth" : void 0
6748
+ });
6749
+ }
6750
+ };
6751
+ const updateCarets = () => {
6752
+ const pEl = parentRef.current;
6753
+ const el = containerRef.current;
6754
+ if (!pEl || !el) {
6755
+ return;
6756
+ }
6757
+ const { width } = pEl.getBoundingClientRect();
6758
+ const hasLeftCaret = el.scrollWidth > width && el.scrollLeft !== 0;
6759
+ const hasRightCaret = el.scrollWidth > width && Math.round(el.scrollLeft + el.getBoundingClientRect().width) !== Math.round(el.scrollWidth);
6760
+ showLeftCaret(hasLeftCaret);
6761
+ showRightCaret(hasRightCaret);
6762
+ };
6598
6763
  useEffect5(() => {
6599
- if (value !== void 0) {
6600
- setSelected(value);
6764
+ if (value === void 0) {
6765
+ return;
6601
6766
  }
6602
- }, [value]);
6767
+ updateCarets();
6768
+ setSelected(value);
6769
+ revealSelectedTab({ smooth: value !== selected });
6770
+ }, [value, React65.Children.count(children)]);
6603
6771
  useLayoutEffect2(() => {
6604
6772
  var _a2;
6605
- const updateCarets = () => {
6606
- const pEl = parentRef.current;
6607
- const el = containerRef.current;
6608
- if (!pEl || !el) {
6609
- return;
6610
- }
6611
- const { width } = pEl.getBoundingClientRect();
6612
- showLeftCaret(el.scrollWidth > width && el.scrollLeft !== 0);
6613
- showRightCaret(
6614
- el.scrollWidth > width && Math.round(el.scrollLeft + el.getBoundingClientRect().width) !== Math.round(el.scrollWidth)
6615
- );
6616
- };
6617
6773
  updateCarets();
6618
6774
  (_a2 = containerRef.current) == null ? void 0 : _a2.addEventListener("scroll", updateCarets);
6619
6775
  window.addEventListener("resize", updateCarets);
@@ -6622,7 +6778,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6622
6778
  (_a3 = containerRef.current) == null ? void 0 : _a3.removeEventListener("scroll", updateCarets);
6623
6779
  window.removeEventListener("resize", updateCarets);
6624
6780
  };
6625
- }, [parentRef.current, containerRef.current]);
6781
+ }, [parentRef.current, containerRef.current, children]);
6626
6782
  const handleScrollToNext = (direction) => {
6627
6783
  const container = containerRef.current;
6628
6784
  const tabs = tabsRef.current;
@@ -6641,7 +6797,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6641
6797
  if (next instanceof HTMLElement) {
6642
6798
  const { x, width } = next.getBoundingClientRect();
6643
6799
  container.scrollTo({
6644
- left: container.scrollLeft + Math.ceil(x + width - containerX - containerWidth),
6800
+ left: container.scrollLeft + Math.ceil(x + width + CARET_OFFSET - containerX - containerWidth),
6645
6801
  behavior: "smooth"
6646
6802
  });
6647
6803
  }
@@ -6652,7 +6808,10 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6652
6808
  });
6653
6809
  if (next instanceof HTMLElement) {
6654
6810
  const { x } = next.getBoundingClientRect();
6655
- container.scrollTo({ left: container.scrollLeft - Math.abs(x - containerX), behavior: "smooth" });
6811
+ container.scrollTo({
6812
+ left: container.scrollLeft - Math.abs(x - containerX - CARET_OFFSET),
6813
+ behavior: "smooth"
6814
+ });
6656
6815
  }
6657
6816
  }
6658
6817
  };
@@ -6672,27 +6831,27 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6672
6831
  const handleSelected = (key) => {
6673
6832
  (onChange != null ? onChange : setSelected)(key);
6674
6833
  };
6675
- React63.Children.forEach(children, (c) => {
6834
+ React65.Children.forEach(children, (c) => {
6676
6835
  if (c && !isTabComponent(c)) {
6677
6836
  throw new Error("<Tabs> can only have <Tabs.Tab> components as children");
6678
6837
  }
6679
6838
  });
6680
- return /* @__PURE__ */ React63.createElement("div", {
6839
+ return /* @__PURE__ */ React65.createElement("div", {
6681
6840
  ref: parentRef,
6682
6841
  className: classNames(tw("h-full"), className)
6683
- }, /* @__PURE__ */ React63.createElement("div", {
6842
+ }, /* @__PURE__ */ React65.createElement("div", {
6684
6843
  className: tw("relative flex items-center h-full border-b-2 border-grey-10")
6685
- }, /* @__PURE__ */ React63.createElement("div", {
6844
+ }, /* @__PURE__ */ React65.createElement("div", {
6686
6845
  ref: containerRef,
6687
6846
  className: tw("overflow-y-auto scrollbar-hide h-full mb-[-2px]")
6688
- }, /* @__PURE__ */ React63.createElement("div", {
6847
+ }, /* @__PURE__ */ React65.createElement("div", {
6689
6848
  ref: tabsRef,
6690
6849
  role: "tablist",
6691
6850
  "aria-label": "tabs",
6692
6851
  className: tw("inline-flex items-center cursor-pointer font-normal h-full")
6693
- }, React63.Children.map(
6852
+ }, React65.Children.map(
6694
6853
  children,
6695
- (tab, index) => tab ? /* @__PURE__ */ React63.createElement(TabItemComponent, __spreadProps(__spreadValues({
6854
+ (tab, index) => tab ? /* @__PURE__ */ React65.createElement(TabItemComponent, __spreadProps(__spreadValues({
6696
6855
  key: tab.props.value
6697
6856
  }, tab.props), {
6698
6857
  index,
@@ -6700,20 +6859,20 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6700
6859
  onKeyDown: handleKeyDown,
6701
6860
  onSelected: handleSelected
6702
6861
  })) : void 0
6703
- ))), leftCaret && /* @__PURE__ */ React63.createElement("div", {
6862
+ ))), leftCaret && /* @__PURE__ */ React65.createElement("div", {
6704
6863
  className: tw("absolute left-0 bg-gradient-to-r from-white via-white z-20 py-3 pr-4")
6705
- }, /* @__PURE__ */ React63.createElement("div", {
6864
+ }, /* @__PURE__ */ React65.createElement("div", {
6706
6865
  onClick: () => handleScrollToNext("left"),
6707
6866
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
6708
- }, /* @__PURE__ */ React63.createElement(InlineIcon, {
6867
+ }, /* @__PURE__ */ React65.createElement(InlineIcon, {
6709
6868
  icon: import_chevronLeft2.default
6710
- }))), rightCaret && /* @__PURE__ */ React63.createElement("div", {
6869
+ }))), rightCaret && /* @__PURE__ */ React65.createElement("div", {
6711
6870
  onClick: () => handleScrollToNext("right"),
6712
6871
  className: tw("absolute right-0 bg-gradient-to-l from-white via-white z-20 py-3 pl-4")
6713
- }, /* @__PURE__ */ React63.createElement("div", {
6872
+ }, /* @__PURE__ */ React65.createElement("div", {
6714
6873
  onClick: () => handleScrollToNext("right"),
6715
6874
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
6716
- }, /* @__PURE__ */ React63.createElement(InlineIcon, {
6875
+ }, /* @__PURE__ */ React65.createElement(InlineIcon, {
6717
6876
  icon: import_chevronRight2.default
6718
6877
  })))), renderChildren(children, selected, props));
6719
6878
  };
@@ -6721,7 +6880,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6721
6880
  Tabs2.Tab = TabComponent;
6722
6881
  return Tabs2;
6723
6882
  };
6724
- var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React63.createElement(TabContainer, null, children.find(
6883
+ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React65.createElement(TabContainer, null, children.find(
6725
6884
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
6726
6885
  )));
6727
6886
 
@@ -6738,7 +6897,7 @@ var Modal2 = ({
6738
6897
  secondaryActions,
6739
6898
  size
6740
6899
  }) => {
6741
- const ref = React64.useRef(null);
6900
+ const ref = React66.useRef(null);
6742
6901
  const state = useOverlayTriggerState4({ isOpen: open });
6743
6902
  const { modalProps, underlayProps } = useModalOverlay2({ isDismissable: false }, state, ref);
6744
6903
  const labelledBy = useId2();
@@ -6750,60 +6909,60 @@ var Modal2 = ({
6750
6909
  if (!open) {
6751
6910
  return null;
6752
6911
  }
6753
- return /* @__PURE__ */ React64.createElement(Overlay2, null, /* @__PURE__ */ React64.createElement(Modal, {
6912
+ return /* @__PURE__ */ React66.createElement(Overlay2, null, /* @__PURE__ */ React66.createElement(Modal, {
6754
6913
  open: state.isOpen
6755
- }, /* @__PURE__ */ React64.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React64.createElement(FocusScope3, {
6914
+ }, /* @__PURE__ */ React66.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React66.createElement(FocusScope3, {
6756
6915
  contain: true,
6757
6916
  restoreFocus: true,
6758
6917
  autoFocus: true
6759
- }, /* @__PURE__ */ React64.createElement(Modal.Dialog, __spreadValues(__spreadValues({
6918
+ }, /* @__PURE__ */ React66.createElement(Modal.Dialog, __spreadValues(__spreadValues({
6760
6919
  ref,
6761
6920
  size
6762
- }, modalProps), dialogProps), /* @__PURE__ */ React64.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React64.createElement(IconButton, {
6921
+ }, modalProps), dialogProps), /* @__PURE__ */ React66.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React66.createElement(IconButton, {
6763
6922
  "aria-label": "Close",
6764
6923
  icon: import_cross5.default,
6765
6924
  onClick: onClose
6766
- })), headerImage !== void 0 && /* @__PURE__ */ React64.createElement(Modal.HeaderImage, {
6925
+ })), headerImage !== void 0 && /* @__PURE__ */ React66.createElement(Modal.HeaderImage, {
6767
6926
  backgroundImage: headerImage
6768
- }), /* @__PURE__ */ React64.createElement(Modal.Header, {
6927
+ }), /* @__PURE__ */ React66.createElement(Modal.Header, {
6769
6928
  className: tw({ "pb-3": isComponentType(children, ModalTabs) })
6770
- }, /* @__PURE__ */ React64.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React64.createElement(Modal.Title, {
6929
+ }, /* @__PURE__ */ React66.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React66.createElement(Modal.Title, {
6771
6930
  id: labelledBy
6772
- }, title), subtitle && /* @__PURE__ */ React64.createElement(Modal.Subtitle, null, subtitle))), isComponentType(children, ModalTabs) ? React64.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React64.createElement(Modal.Body, {
6931
+ }, title), subtitle && /* @__PURE__ */ React66.createElement(Modal.Subtitle, null, subtitle))), isComponentType(children, ModalTabs) ? React66.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React66.createElement(Modal.Body, {
6773
6932
  id: describedBy,
6774
6933
  tabIndex: 0,
6775
6934
  noFooter: !(secondaryActions || primaryAction)
6776
- }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React64.createElement(Modal.Footer, null, /* @__PURE__ */ React64.createElement(Modal.Actions, null, secondaryActions && castArray(secondaryActions).filter(Boolean).map((_a) => {
6935
+ }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React66.createElement(Modal.Footer, null, /* @__PURE__ */ React66.createElement(Modal.Actions, null, secondaryActions && castArray(secondaryActions).filter(Boolean).map((_a) => {
6777
6936
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
6778
- return /* @__PURE__ */ React64.createElement(SecondaryButton, __spreadValues({
6937
+ return /* @__PURE__ */ React66.createElement(SecondaryButton, __spreadValues({
6779
6938
  key: text
6780
6939
  }, action), text);
6781
- }), primaryAction && /* @__PURE__ */ React64.createElement(PrimaryButton, __spreadValues({
6940
+ }), primaryAction && /* @__PURE__ */ React66.createElement(PrimaryButton, __spreadValues({
6782
6941
  key: primaryAction.text
6783
- }, omit9(primaryAction, "text")), primaryAction.text)))))));
6942
+ }, omit10(primaryAction, "text")), primaryAction.text)))))));
6784
6943
  };
6785
6944
  var ModalTabs = createTabsComponent(
6786
6945
  ModalTab,
6787
6946
  TabItem,
6788
6947
  "ModalTabs",
6789
- (children, selected, props) => /* @__PURE__ */ React64.createElement(Modal.Body, {
6948
+ (children, selected, props) => /* @__PURE__ */ React66.createElement(Modal.Body, {
6790
6949
  maxHeight: props.maxHeight
6791
- }, /* @__PURE__ */ React64.createElement(ModalTabContainer, null, children.find(
6950
+ }, /* @__PURE__ */ React66.createElement(ModalTabContainer, null, children.find(
6792
6951
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
6793
6952
  )))
6794
6953
  );
6795
6954
 
6796
6955
  // src/components/MultiInput/MultiInput.tsx
6797
- import React66, { useEffect as useEffect6, useRef as useRef7, useState as useState8 } from "react";
6956
+ import React68, { useEffect as useEffect6, useRef as useRef7, useState as useState8 } from "react";
6798
6957
  import castArray2 from "lodash/castArray";
6799
6958
  import identity from "lodash/identity";
6800
- import omit10 from "lodash/omit";
6959
+ import omit11 from "lodash/omit";
6801
6960
  import uniqueId4 from "lodash/uniqueId";
6802
6961
 
6803
6962
  // src/components/MultiInput/InputChip.tsx
6804
- import React65 from "react";
6963
+ import React67 from "react";
6805
6964
  var import_smallCross = __toESM(require_smallCross());
6806
- var InputChip = React65.forwardRef(
6965
+ var InputChip = React67.forwardRef(
6807
6966
  (_a, ref) => {
6808
6967
  var _b = _a, { invalid = false, disabled, readOnly, className, onClick: _onClick, children } = _b, props = __objRest(_b, ["invalid", "disabled", "readOnly", "className", "onClick", "children"]);
6809
6968
  const onClick = (e) => {
@@ -6811,7 +6970,7 @@ var InputChip = React65.forwardRef(
6811
6970
  _onClick == null ? void 0 : _onClick(e);
6812
6971
  }
6813
6972
  };
6814
- return /* @__PURE__ */ React65.createElement("div", __spreadValues({
6973
+ return /* @__PURE__ */ React67.createElement("div", __spreadValues({
6815
6974
  ref,
6816
6975
  role: "button",
6817
6976
  className: classNames(className, "inline-flex align-middle mx-1 px-2 py-1 items-center rounded-sm break-all", {
@@ -6821,10 +6980,10 @@ var InputChip = React65.forwardRef(
6821
6980
  "bg-grey-5 pointer-events-none": disabled
6822
6981
  }),
6823
6982
  onClick
6824
- }, props), /* @__PURE__ */ React65.createElement(Typography2, {
6983
+ }, props), /* @__PURE__ */ React67.createElement(Typography2, {
6825
6984
  variant: "small",
6826
6985
  color: invalid ? "error-80" : disabled ? "grey-40" : "grey-70"
6827
- }, children), !readOnly && /* @__PURE__ */ React65.createElement("div", null, /* @__PURE__ */ React65.createElement(Icon, {
6986
+ }, children), !readOnly && /* @__PURE__ */ React67.createElement("div", null, /* @__PURE__ */ React67.createElement(Icon, {
6828
6987
  icon: import_smallCross.default,
6829
6988
  className: tw("ml-2", {
6830
6989
  "text-error-70": invalid,
@@ -6962,7 +7121,7 @@ var MultiInputBase = (_a) => {
6962
7121
  };
6963
7122
  const renderChips = () => items == null ? void 0 : items.map((item, index) => {
6964
7123
  var _a3;
6965
- return /* @__PURE__ */ React66.createElement(InputChip, {
7124
+ return /* @__PURE__ */ React68.createElement(InputChip, {
6966
7125
  key: `${itemToString(item)}.${index}`,
6967
7126
  invalid: !((_a3 = isItemValid == null ? void 0 : isItemValid(item, index)) != null ? _a3 : true),
6968
7127
  readOnly,
@@ -6973,11 +7132,11 @@ var MultiInputBase = (_a) => {
6973
7132
  }
6974
7133
  }, itemToString(item));
6975
7134
  });
6976
- return /* @__PURE__ */ React66.createElement("div", null, /* @__PURE__ */ React66.createElement(Select.InputContainer, {
7135
+ return /* @__PURE__ */ React68.createElement("div", null, /* @__PURE__ */ React68.createElement(Select.InputContainer, {
6977
7136
  variant: disabled ? "disabled" : valid === false ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
6978
- }, /* @__PURE__ */ React66.createElement("div", {
7137
+ }, /* @__PURE__ */ React68.createElement("div", {
6979
7138
  className: "grow inline-flex flex-row flex-wrap gap-y-2"
6980
- }, inline && renderChips(), /* @__PURE__ */ React66.createElement(Select.Input, __spreadProps(__spreadValues({
7139
+ }, inline && renderChips(), /* @__PURE__ */ React68.createElement(Select.Input, __spreadProps(__spreadValues({
6981
7140
  ref: inputRef,
6982
7141
  id: id != null ? id : name,
6983
7142
  name,
@@ -6995,11 +7154,11 @@ var MultiInputBase = (_a) => {
6995
7154
  onFocus: handleFocus,
6996
7155
  onBlur: handleBlur,
6997
7156
  autoComplete: "off"
6998
- }))), endAdornment && /* @__PURE__ */ React66.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React66.createElement("div", {
7157
+ }))), endAdornment && /* @__PURE__ */ React68.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React68.createElement("div", {
6999
7158
  className: tw("flex flex-row flex-wrap gap-y-2 mt-2")
7000
7159
  }, renderChips()));
7001
7160
  };
7002
- var BaseMultiInputSkeleton = () => /* @__PURE__ */ React66.createElement(Skeleton, {
7161
+ var BaseMultiInputSkeleton = () => /* @__PURE__ */ React68.createElement(Skeleton, {
7003
7162
  height: 38
7004
7163
  });
7005
7164
  MultiInputBase.Skeleton = BaseMultiInputSkeleton;
@@ -7015,15 +7174,15 @@ var MultiInput = (props) => {
7015
7174
  const errorMessageId = uniqueId4();
7016
7175
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7017
7176
  const labelControlProps = getLabelControlProps(props);
7018
- const baseProps = omit10(props, Object.keys(labelControlProps));
7019
- return /* @__PURE__ */ React66.createElement(LabelControl, __spreadProps(__spreadValues({
7177
+ const baseProps = omit11(props, Object.keys(labelControlProps));
7178
+ return /* @__PURE__ */ React68.createElement(LabelControl, __spreadProps(__spreadValues({
7020
7179
  id: `${id.current}-label`,
7021
7180
  htmlFor: `${id.current}-input`,
7022
7181
  messageId: errorMessageId
7023
7182
  }, labelControlProps), {
7024
7183
  length: value.length,
7025
7184
  maxLength
7026
- }), /* @__PURE__ */ React66.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7185
+ }), /* @__PURE__ */ React68.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7027
7186
  id: `${id.current}-input`,
7028
7187
  onChange: (value2) => {
7029
7188
  var _a2;
@@ -7035,16 +7194,16 @@ var MultiInput = (props) => {
7035
7194
  valid: props.valid
7036
7195
  })));
7037
7196
  };
7038
- var MultiInputSkeleton = () => /* @__PURE__ */ React66.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React66.createElement(MultiInputBase.Skeleton, null));
7197
+ var MultiInputSkeleton = () => /* @__PURE__ */ React68.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React68.createElement(MultiInputBase.Skeleton, null));
7039
7198
  MultiInput.Skeleton = MultiInputSkeleton;
7040
7199
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
7041
7200
 
7042
7201
  // src/components/MultiSelect/MultiSelect.tsx
7043
- import React67, { useRef as useRef8, useState as useState9 } from "react";
7202
+ import React69, { useRef as useRef8, useState as useState9 } from "react";
7044
7203
  import { useOverlayPosition as useOverlayPosition5 } from "@react-aria/overlays";
7045
7204
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
7046
7205
  import isNil from "lodash/isNil";
7047
- import omit11 from "lodash/omit";
7206
+ import omit12 from "lodash/omit";
7048
7207
  import omitBy from "lodash/omitBy";
7049
7208
  import uniqueId5 from "lodash/uniqueId";
7050
7209
  import { matchSorter as matchSorter2 } from "match-sorter";
@@ -7054,9 +7213,9 @@ var MultiSelectBase = (_a) => {
7054
7213
  name,
7055
7214
  placeholder,
7056
7215
  maxHeight,
7057
- closeOnSelect = true,
7058
7216
  hideChips = false,
7059
7217
  inline = true,
7218
+ closeOnSelect = inline ? false : true,
7060
7219
  options,
7061
7220
  optionKeys = ["label", "value"],
7062
7221
  noResults,
@@ -7076,9 +7235,9 @@ var MultiSelectBase = (_a) => {
7076
7235
  "name",
7077
7236
  "placeholder",
7078
7237
  "maxHeight",
7079
- "closeOnSelect",
7080
7238
  "hideChips",
7081
7239
  "inline",
7240
+ "closeOnSelect",
7082
7241
  "options",
7083
7242
  "optionKeys",
7084
7243
  "noResults",
@@ -7114,10 +7273,19 @@ var MultiSelectBase = (_a) => {
7114
7273
  const filteredOptions = (inputValue ? matchSorter2(options, inputValue, { keys }) : options).filter(
7115
7274
  (opt) => !selectedItemsAsStrings.includes(itemToString(opt))
7116
7275
  );
7117
- const { isOpen, closeMenu, highlightedIndex, getInputProps, getMenuProps, getToggleButtonProps, getItemProps } = useCombobox2({
7276
+ const {
7277
+ isOpen,
7278
+ openMenu,
7279
+ closeMenu,
7280
+ highlightedIndex,
7281
+ getInputProps,
7282
+ getMenuProps,
7283
+ getToggleButtonProps,
7284
+ getItemProps
7285
+ } = useCombobox2({
7118
7286
  id,
7119
7287
  inputValue,
7120
- defaultHighlightedIndex: 0,
7288
+ defaultSelectedItem: defaultValue,
7121
7289
  selectedItem: null,
7122
7290
  items: filteredOptions,
7123
7291
  stateReducer: (_, actionChanges) => {
@@ -7157,15 +7325,16 @@ var MultiSelectBase = (_a) => {
7157
7325
  shouldFlip: true,
7158
7326
  isOpen
7159
7327
  });
7160
- const inputProps = getInputProps(getDropdownProps({ preventKeyAction: isOpen, disabled: disabled || readOnly }));
7328
+ const inputProps = getInputProps(getDropdownProps({ disabled: disabled || readOnly }));
7161
7329
  const renderChips = () => {
7162
- return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React67.createElement(InputChip, __spreadProps(__spreadValues({
7330
+ return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React69.createElement(InputChip, __spreadProps(__spreadValues({
7163
7331
  key: `${itemToString(selectedItem)}.chip`,
7164
7332
  className: tw("mx-0"),
7165
7333
  disabled,
7166
7334
  readOnly
7167
7335
  }, getSelectedItemProps({ selectedItem, index })), {
7168
7336
  onClick: (e) => {
7337
+ e.preventDefault();
7169
7338
  e.stopPropagation();
7170
7339
  removeSelectedItem(selectedItem);
7171
7340
  }
@@ -7174,14 +7343,14 @@ var MultiSelectBase = (_a) => {
7174
7343
  const hasNoResults = options.length === 0 || filteredOptions.length === 0;
7175
7344
  const width = (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth;
7176
7345
  const style = isOpen ? __spreadProps(__spreadValues({}, overlayProps.style), { width }) : { display: "none" };
7177
- return /* @__PURE__ */ React67.createElement("div", {
7346
+ return /* @__PURE__ */ React69.createElement("div", {
7178
7347
  className: tw("relative")
7179
- }, /* @__PURE__ */ React67.createElement(Select.InputContainer, {
7348
+ }, /* @__PURE__ */ React69.createElement(Select.InputContainer, {
7180
7349
  ref: targetRef,
7181
7350
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
7182
- }, /* @__PURE__ */ React67.createElement("div", {
7351
+ }, /* @__PURE__ */ React69.createElement("div", {
7183
7352
  className: "grow inline-flex flex-row flex-wrap gap-2"
7184
- }, !hideChips && inline && renderChips(), /* @__PURE__ */ React67.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
7353
+ }, !hideChips && inline && renderChips(), /* @__PURE__ */ React69.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
7185
7354
  id,
7186
7355
  name,
7187
7356
  placeholder: selectedItems.length === 0 && !readOnly ? placeholder : "",
@@ -7189,6 +7358,7 @@ var MultiSelectBase = (_a) => {
7189
7358
  }, inputProps), props), {
7190
7359
  disabled,
7191
7360
  readOnly,
7361
+ onClick: readOnly ? void 0 : openMenu,
7192
7362
  onKeyDown: (e) => {
7193
7363
  var _a3;
7194
7364
  e.stopPropagation();
@@ -7196,28 +7366,33 @@ var MultiSelectBase = (_a) => {
7196
7366
  },
7197
7367
  onKeyUp: (e) => e.stopPropagation(),
7198
7368
  onFocus: () => setFocus(true),
7199
- onBlur: () => setFocus(false)
7200
- }))), !readOnly && /* @__PURE__ */ React67.createElement(Select.Toggle, __spreadValues({
7369
+ onBlur: (e) => {
7370
+ var _a3;
7371
+ setFocus(false);
7372
+ (_a3 = inputProps.onBlur) == null ? void 0 : _a3.call(inputProps, e);
7373
+ }
7374
+ }))), !readOnly && /* @__PURE__ */ React69.createElement(Select.Toggle, __spreadValues({
7201
7375
  hasFocus,
7202
7376
  isOpen
7203
- }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React67.createElement("div", {
7377
+ }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React69.createElement("div", {
7204
7378
  className: tw("flex flex-row flex-wrap gap-2 mt-2")
7205
- }, renderChips()), /* @__PURE__ */ React67.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7379
+ }, renderChips()), /* @__PURE__ */ React69.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7206
7380
  isOpen: true,
7207
7381
  isDismissable: true,
7208
7382
  autoFocus: true
7209
7383
  }, getMenuProps({ ref: overlayRef })), {
7210
7384
  style,
7211
- onClose: closeMenu
7212
- }), /* @__PURE__ */ React67.createElement(Select.Menu, {
7385
+ onClose: closeMenu,
7386
+ className: tw("overflow-y-auto")
7387
+ }), /* @__PURE__ */ React69.createElement(Select.Menu, {
7213
7388
  maxHeight
7214
- }, isOpen && hasNoResults && /* @__PURE__ */ React67.createElement(Select.NoResults, null, noResults), isOpen && filteredOptions.map((item, index) => /* @__PURE__ */ React67.createElement(Select.Item, __spreadValues({
7389
+ }, isOpen && hasNoResults && /* @__PURE__ */ React69.createElement(Select.NoResults, null, noResults), isOpen && filteredOptions.map((item, index) => /* @__PURE__ */ React69.createElement(Select.Item, __spreadValues({
7215
7390
  key: itemToString(item),
7216
7391
  highlighted: index === highlightedIndex,
7217
7392
  selected: selectedItems.includes(item)
7218
7393
  }, getItemProps({ item, index, disabled: isOptionDisabled(item, index) })), renderOption(item))))));
7219
7394
  };
7220
- var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React67.createElement(Skeleton, {
7395
+ var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React69.createElement(Skeleton, {
7221
7396
  height: 38
7222
7397
  });
7223
7398
  MultiSelectBase.Skeleton = MultiSelectBaseSkeleton;
@@ -7234,12 +7409,12 @@ var MultiSelect = (_a) => {
7234
7409
  const errorMessageId = uniqueId5();
7235
7410
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7236
7411
  const labelControlProps = getLabelControlProps(props);
7237
- const baseProps = omit11(props, Object.keys(labelControlProps));
7238
- return /* @__PURE__ */ React67.createElement(LabelControl, __spreadValues({
7412
+ const baseProps = omit12(props, Object.keys(labelControlProps));
7413
+ return /* @__PURE__ */ React69.createElement(LabelControl, __spreadValues({
7239
7414
  id: `${id.current}-label`,
7240
7415
  htmlFor: `${id.current}-input`,
7241
7416
  messageId: errorMessageId
7242
- }, labelControlProps), /* @__PURE__ */ React67.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7417
+ }, labelControlProps), /* @__PURE__ */ React69.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7243
7418
  id: id.current,
7244
7419
  options,
7245
7420
  noResults,
@@ -7247,16 +7422,16 @@ var MultiSelect = (_a) => {
7247
7422
  valid: props.valid
7248
7423
  })));
7249
7424
  };
7250
- var MultiSelectSkeleton = () => /* @__PURE__ */ React67.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React67.createElement(MultiSelectBase.Skeleton, null));
7425
+ var MultiSelectSkeleton = () => /* @__PURE__ */ React69.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React69.createElement(MultiSelectBase.Skeleton, null));
7251
7426
  MultiSelect.Skeleton = MultiSelectSkeleton;
7252
7427
  MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
7253
7428
 
7254
7429
  // src/components/NativeSelect/NativeSelect.tsx
7255
- import React68, { useRef as useRef9 } from "react";
7256
- import omit12 from "lodash/omit";
7430
+ import React70, { useRef as useRef9 } from "react";
7431
+ import omit13 from "lodash/omit";
7257
7432
  import uniqueId6 from "lodash/uniqueId";
7258
7433
  var import_caretDown = __toESM(require_caretDown());
7259
- var NativeSelectBase = React68.forwardRef(
7434
+ var NativeSelectBase = React70.forwardRef(
7260
7435
  (_a, ref) => {
7261
7436
  var _b = _a, { children, disabled = false, required = false, valid = true, readOnly = false } = _b, props = __objRest(_b, ["children", "disabled", "required", "valid", "readOnly"]);
7262
7437
  const placeholderValue = uniqueId6("default_value_for_placeholder");
@@ -7273,16 +7448,16 @@ var NativeSelectBase = React68.forwardRef(
7273
7448
  (_b2 = props.onBlur) == null ? void 0 : _b2.call(props, event);
7274
7449
  }
7275
7450
  };
7276
- return /* @__PURE__ */ React68.createElement("span", {
7451
+ return /* @__PURE__ */ React70.createElement("span", {
7277
7452
  className: tw("relative block")
7278
- }, !readOnly && /* @__PURE__ */ React68.createElement("span", {
7453
+ }, !readOnly && /* @__PURE__ */ React70.createElement("span", {
7279
7454
  className: tw(
7280
7455
  "absolute right-0 inset-y-0 mr-4 text-grey-40 flex ml-3 pointer-events-none typography-default-strong mt-4"
7281
7456
  )
7282
- }, /* @__PURE__ */ React68.createElement(Icon, {
7457
+ }, /* @__PURE__ */ React70.createElement(Icon, {
7283
7458
  icon: import_caretDown.default,
7284
7459
  "data-testid": "icon-dropdown"
7285
- })), /* @__PURE__ */ React68.createElement("select", __spreadProps(__spreadValues({
7460
+ })), /* @__PURE__ */ React70.createElement("select", __spreadProps(__spreadValues({
7286
7461
  ref,
7287
7462
  disabled: disabled || readOnly,
7288
7463
  required
@@ -7301,16 +7476,16 @@ var NativeSelectBase = React68.forwardRef(
7301
7476
  ),
7302
7477
  props.className
7303
7478
  )
7304
- }), props.placeholder && /* @__PURE__ */ React68.createElement("option", {
7479
+ }), props.placeholder && /* @__PURE__ */ React70.createElement("option", {
7305
7480
  value: placeholderValue,
7306
7481
  disabled: true
7307
7482
  }, props.placeholder), children));
7308
7483
  }
7309
7484
  );
7310
- NativeSelectBase.Skeleton = () => /* @__PURE__ */ React68.createElement(Skeleton, {
7485
+ NativeSelectBase.Skeleton = () => /* @__PURE__ */ React70.createElement(Skeleton, {
7311
7486
  height: 38
7312
7487
  });
7313
- var NativeSelect = React68.forwardRef(
7488
+ var NativeSelect = React70.forwardRef(
7314
7489
  (_a, ref) => {
7315
7490
  var _b = _a, { readOnly } = _b, props = __objRest(_b, ["readOnly"]);
7316
7491
  var _a2;
@@ -7318,12 +7493,12 @@ var NativeSelect = React68.forwardRef(
7318
7493
  const errorMessageId = uniqueId6();
7319
7494
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7320
7495
  const _b2 = getLabelControlProps(props), { "data-testid": dataTestId } = _b2, labelControlProps = __objRest(_b2, ["data-testid"]);
7321
- const baseProps = omit12(props, Object.keys(labelControlProps));
7322
- return /* @__PURE__ */ React68.createElement(LabelControl, __spreadValues({
7496
+ const baseProps = omit13(props, Object.keys(labelControlProps));
7497
+ return /* @__PURE__ */ React70.createElement(LabelControl, __spreadValues({
7323
7498
  id: `${id.current}-label`,
7324
7499
  htmlFor: id.current,
7325
7500
  messageId: errorMessageId
7326
- }, labelControlProps), /* @__PURE__ */ React68.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
7501
+ }, labelControlProps), /* @__PURE__ */ React70.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
7327
7502
  ref
7328
7503
  }, baseProps), errorProps), {
7329
7504
  id: id.current,
@@ -7336,22 +7511,22 @@ var NativeSelect = React68.forwardRef(
7336
7511
  })));
7337
7512
  }
7338
7513
  );
7339
- var Option = React68.forwardRef((_a, ref) => {
7514
+ var Option = React70.forwardRef((_a, ref) => {
7340
7515
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
7341
- return /* @__PURE__ */ React68.createElement("option", __spreadValues({
7516
+ return /* @__PURE__ */ React70.createElement("option", __spreadValues({
7342
7517
  ref
7343
7518
  }, props), children);
7344
7519
  });
7345
- var NativeSelectSkeleton = () => /* @__PURE__ */ React68.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React68.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React68.createElement("div", {
7520
+ var NativeSelectSkeleton = () => /* @__PURE__ */ React70.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React70.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React70.createElement("div", {
7346
7521
  style: { height: "1px" }
7347
7522
  }));
7348
7523
  NativeSelect.Skeleton = NativeSelectSkeleton;
7349
7524
  NativeSelect.Skeleton.displayName = "NativeSelect.Skeleton";
7350
7525
 
7351
7526
  // src/components/PageHeader/PageHeader.tsx
7352
- import React69 from "react";
7527
+ import React71 from "react";
7353
7528
  import castArray3 from "lodash/castArray";
7354
- import omit13 from "lodash/omit";
7529
+ import omit14 from "lodash/omit";
7355
7530
  var PageHeader = ({
7356
7531
  title,
7357
7532
  image,
@@ -7361,54 +7536,54 @@ var PageHeader = ({
7361
7536
  chips = [],
7362
7537
  breadcrumbs
7363
7538
  }) => {
7364
- return /* @__PURE__ */ React69.createElement(Flexbox, {
7539
+ return /* @__PURE__ */ React71.createElement(Flexbox, {
7365
7540
  direction: "row",
7366
7541
  gap: "4",
7367
7542
  paddingBottom: "6"
7368
- }, /* @__PURE__ */ React69.createElement(Flexbox, {
7543
+ }, /* @__PURE__ */ React71.createElement(Flexbox, {
7369
7544
  className: tw("grow"),
7370
7545
  direction: "column",
7371
7546
  gap: "0"
7372
- }, breadcrumbs && /* @__PURE__ */ React69.createElement(Breadcrumbs, null, breadcrumbs), /* @__PURE__ */ React69.createElement(Flexbox, {
7547
+ }, breadcrumbs && /* @__PURE__ */ React71.createElement(Breadcrumbs, null, breadcrumbs), /* @__PURE__ */ React71.createElement(Flexbox, {
7373
7548
  gap: "5"
7374
- }, image && /* @__PURE__ */ React69.createElement("img", {
7549
+ }, image && /* @__PURE__ */ React71.createElement("img", {
7375
7550
  src: image,
7376
7551
  alt: imageAlt,
7377
7552
  className: tw("w-[56px] h-[56px]")
7378
- }), /* @__PURE__ */ React69.createElement(Flexbox, {
7553
+ }), /* @__PURE__ */ React71.createElement(Flexbox, {
7379
7554
  direction: "column",
7380
7555
  justifyContent: "center"
7381
- }, /* @__PURE__ */ React69.createElement(Typography2.Heading, null, title), chips.length > 0 && /* @__PURE__ */ React69.createElement(Flexbox, {
7556
+ }, /* @__PURE__ */ React71.createElement(Typography2.Heading, null, title), chips.length > 0 && /* @__PURE__ */ React71.createElement(Flexbox, {
7382
7557
  gap: "3"
7383
- }, chips.map((chip) => /* @__PURE__ */ React69.createElement(Chip2, {
7558
+ }, chips.map((chip) => /* @__PURE__ */ React71.createElement(Chip2, {
7384
7559
  key: chip,
7385
7560
  dense: true,
7386
7561
  text: chip
7387
- })))))), (secondaryActions || primaryAction) && /* @__PURE__ */ React69.createElement(Flexbox, {
7562
+ })))))), (secondaryActions || primaryAction) && /* @__PURE__ */ React71.createElement(Flexbox, {
7388
7563
  gap: "4",
7389
7564
  className: tw("self-start")
7390
7565
  }, secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_a) => {
7391
7566
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
7392
- return /* @__PURE__ */ React69.createElement(SecondaryButton, __spreadValues({
7567
+ return /* @__PURE__ */ React71.createElement(SecondaryButton, __spreadValues({
7393
7568
  key: text
7394
7569
  }, action), text);
7395
- }), primaryAction && /* @__PURE__ */ React69.createElement(PrimaryButton, __spreadValues({
7570
+ }), primaryAction && /* @__PURE__ */ React71.createElement(PrimaryButton, __spreadValues({
7396
7571
  key: primaryAction.text
7397
- }, omit13(primaryAction, "text")), primaryAction.text)));
7572
+ }, omit14(primaryAction, "text")), primaryAction.text)));
7398
7573
  };
7399
7574
 
7400
7575
  // src/components/Pagination/Pagination.tsx
7401
- import React71 from "react";
7576
+ import React73 from "react";
7402
7577
  import clamp from "lodash/clamp";
7403
7578
 
7404
7579
  // src/components/Select/Select.tsx
7405
- import React70, { useRef as useRef10, useState as useState10 } from "react";
7580
+ import React72, { useRef as useRef10, useState as useState10 } from "react";
7406
7581
  import { useOverlayPosition as useOverlayPosition6 } from "@react-aria/overlays";
7407
7582
  import { useSelect } from "downshift";
7408
7583
  import defaults from "lodash/defaults";
7409
7584
  import isArray from "lodash/isArray";
7410
7585
  import isNil2 from "lodash/isNil";
7411
- import omit14 from "lodash/omit";
7586
+ import omit15 from "lodash/omit";
7412
7587
  import uniqueId7 from "lodash/uniqueId";
7413
7588
  var hasIconProperty = (val) => {
7414
7589
  var _a;
@@ -7419,10 +7594,10 @@ var hasOptionGroups = (val) => {
7419
7594
  };
7420
7595
  var defaultRenderOption = (item, props, { selectedItem }, { getOptionKey, getValue, optionToString = getOptionLabelBuiltin }) => {
7421
7596
  var _a, _b;
7422
- return /* @__PURE__ */ React70.createElement(Select.Item, __spreadValues({
7597
+ return /* @__PURE__ */ React72.createElement(Select.Item, __spreadValues({
7423
7598
  key: (_b = (_a = getOptionKey == null ? void 0 : getOptionKey(item)) != null ? _a : getValue == null ? void 0 : getValue(item)) != null ? _b : optionToString(item),
7424
7599
  selected: item === selectedItem
7425
- }, props), hasIconProperty(item) && /* @__PURE__ */ React70.createElement(InlineIcon, {
7600
+ }, props), hasIconProperty(item) && /* @__PURE__ */ React72.createElement(InlineIcon, {
7426
7601
  icon: item.icon
7427
7602
  }), optionToString(item));
7428
7603
  };
@@ -7539,13 +7714,13 @@ var _SelectBase = (props) => {
7539
7714
  },
7540
7715
  withDefaults
7541
7716
  );
7542
- const renderGroup = (group) => /* @__PURE__ */ React70.createElement(React70.Fragment, {
7717
+ const renderGroup = (group) => /* @__PURE__ */ React72.createElement(React72.Fragment, {
7543
7718
  key: group.label
7544
- }, /* @__PURE__ */ React70.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
7545
- const input = /* @__PURE__ */ React70.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
7719
+ }, /* @__PURE__ */ React72.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
7720
+ const input = /* @__PURE__ */ React72.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
7546
7721
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default",
7547
7722
  tabIndex: 0
7548
- }), /* @__PURE__ */ React70.createElement(Select.Input, __spreadProps(__spreadValues({
7723
+ }), /* @__PURE__ */ React72.createElement(Select.Input, __spreadProps(__spreadValues({
7549
7724
  id,
7550
7725
  name
7551
7726
  }, rest), {
@@ -7557,27 +7732,28 @@ var _SelectBase = (props) => {
7557
7732
  tabIndex: -1,
7558
7733
  onFocus: () => setFocus(true),
7559
7734
  onBlur: () => setFocus(false)
7560
- })), !readOnly && /* @__PURE__ */ React70.createElement(Select.Toggle, {
7735
+ })), !readOnly && /* @__PURE__ */ React72.createElement(Select.Toggle, {
7561
7736
  disabled,
7562
7737
  isOpen,
7563
7738
  tabIndex: -1
7564
7739
  }));
7565
7740
  const width = (_b = targetRef.current) == null ? void 0 : _b.offsetWidth;
7566
7741
  const style = isOpen ? __spreadProps(__spreadValues({}, overlayProps.style), { width }) : { display: "none" };
7567
- return /* @__PURE__ */ React70.createElement("div", {
7742
+ return /* @__PURE__ */ React72.createElement("div", {
7568
7743
  className: tw("relative")
7569
- }, labelWrapper ? React70.cloneElement(labelWrapper, { children: input }) : input, /* @__PURE__ */ React70.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7744
+ }, labelWrapper ? React72.cloneElement(labelWrapper, { children: input }) : input, /* @__PURE__ */ React72.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7570
7745
  isOpen: true,
7571
7746
  isDismissable: true,
7572
7747
  autoFocus: true
7573
7748
  }, getMenuProps({ ref: overlayRef })), {
7574
7749
  style,
7575
- onClose: closeMenu
7576
- }), /* @__PURE__ */ React70.createElement(Select.Menu, {
7750
+ onClose: closeMenu,
7751
+ className: tw("overflow-y-auto")
7752
+ }), /* @__PURE__ */ React72.createElement(Select.Menu, {
7577
7753
  maxHeight
7578
- }, isOpen && options.length === 0 && /* @__PURE__ */ React70.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__ */ React70.createElement(React70.Fragment, null, /* @__PURE__ */ React70.createElement(Select.Divider, {
7754
+ }, isOpen && options.length === 0 && /* @__PURE__ */ React72.createElement(Select.EmptyStateContainer, null, emptyState), isOpen && options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), isOpen && options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), isOpen && actions.length > 0 && /* @__PURE__ */ React72.createElement(React72.Fragment, null, /* @__PURE__ */ React72.createElement(Select.Divider, {
7579
7755
  onMouseOver: () => setHighlightedIndex(-1)
7580
- }), actions.map((act, index) => /* @__PURE__ */ React70.createElement(Select.ActionItem, __spreadProps(__spreadValues({
7756
+ }), actions.map((act, index) => /* @__PURE__ */ React72.createElement(Select.ActionItem, __spreadProps(__spreadValues({
7581
7757
  key: `${index}`
7582
7758
  }, act), {
7583
7759
  onMouseOver: () => setHighlightedIndex(-1),
@@ -7587,10 +7763,10 @@ var _SelectBase = (props) => {
7587
7763
  }
7588
7764
  }), act.label))))));
7589
7765
  };
7590
- var SelectBase = (props) => /* @__PURE__ */ React70.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
7766
+ var SelectBase = (props) => /* @__PURE__ */ React72.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
7591
7767
  labelWrapper: void 0
7592
7768
  }));
7593
- var SelectBaseSkeleton = () => /* @__PURE__ */ React70.createElement(Skeleton, {
7769
+ var SelectBaseSkeleton = () => /* @__PURE__ */ React72.createElement(Skeleton, {
7594
7770
  height: 38
7595
7771
  });
7596
7772
  SelectBase.Skeleton = SelectBaseSkeleton;
@@ -7605,22 +7781,22 @@ var Select2 = (_a) => {
7605
7781
  const errorMessageId = uniqueId7();
7606
7782
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7607
7783
  const labelProps = getLabelControlProps(props);
7608
- const baseProps = omit14(props, Object.keys(labelProps));
7784
+ const baseProps = omit15(props, Object.keys(labelProps));
7609
7785
  const legacyError = labelProps.error !== void 0 && labelProps.valid === false;
7610
7786
  const variant = !labelProps.valid || legacyError ? "error" : labelProps.disabled ? "disabled" : "default";
7611
- const label = /* @__PURE__ */ React70.createElement(Label, __spreadValues({
7787
+ const label = /* @__PURE__ */ React72.createElement(Label, __spreadValues({
7612
7788
  id: `${id.current}-label`,
7613
7789
  htmlFor: `${id.current}-input`,
7614
7790
  variant,
7615
7791
  messageId: errorMessageId
7616
7792
  }, labelProps));
7617
- return /* @__PURE__ */ React70.createElement(FormControl, null, /* @__PURE__ */ React70.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7793
+ return /* @__PURE__ */ React72.createElement(FormControl, null, /* @__PURE__ */ React72.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7618
7794
  id: `${id.current}-input`,
7619
7795
  options,
7620
7796
  disabled: props.disabled,
7621
7797
  valid: props.valid,
7622
7798
  labelWrapper: label
7623
- })), /* @__PURE__ */ React70.createElement(HelperText, {
7799
+ })), /* @__PURE__ */ React72.createElement(HelperText, {
7624
7800
  messageId: errorMessageId,
7625
7801
  error: !labelProps.valid,
7626
7802
  helperText: labelProps.helperText,
@@ -7629,7 +7805,7 @@ var Select2 = (_a) => {
7629
7805
  reserveSpaceForError: labelProps.reserveSpaceForError
7630
7806
  }));
7631
7807
  };
7632
- var SelectSkeleton = () => /* @__PURE__ */ React70.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React70.createElement(SelectBase.Skeleton, null));
7808
+ var SelectSkeleton = () => /* @__PURE__ */ React72.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React72.createElement(SelectBase.Skeleton, null));
7633
7809
  Select2.Skeleton = SelectSkeleton;
7634
7810
 
7635
7811
  // src/components/Pagination/Pagination.tsx
@@ -7647,25 +7823,25 @@ var Pagination = ({
7647
7823
  pageSizes,
7648
7824
  onPageSizeChange
7649
7825
  }) => {
7650
- const [value, setValue] = React71.useState(currentPage);
7651
- React71.useEffect(() => {
7826
+ const [value, setValue] = React73.useState(currentPage);
7827
+ React73.useEffect(() => {
7652
7828
  setValue(currentPage);
7653
7829
  }, [currentPage]);
7654
- React71.useEffect(() => {
7830
+ React73.useEffect(() => {
7655
7831
  onPageChange(1);
7656
7832
  setValue(1);
7657
7833
  }, [pageSize]);
7658
- return /* @__PURE__ */ React71.createElement(Box, {
7834
+ return /* @__PURE__ */ React73.createElement(Box, {
7659
7835
  className: tw("grid grid-cols-[200px_1fr_200px]"),
7660
7836
  backgroundColor: "grey-0",
7661
7837
  padding: "4"
7662
- }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React71.createElement(Box, {
7838
+ }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React73.createElement(Box, {
7663
7839
  display: "flex",
7664
7840
  alignItems: "center",
7665
7841
  gap: "4"
7666
- }, /* @__PURE__ */ React71.createElement(Typography2.SmallText, null, "Items per page "), /* @__PURE__ */ React71.createElement("div", {
7842
+ }, /* @__PURE__ */ React73.createElement(Typography2.SmallText, null, "Items per page "), /* @__PURE__ */ React73.createElement("div", {
7667
7843
  className: tw("max-w-[70px]")
7668
- }, /* @__PURE__ */ React71.createElement(SelectBase, {
7844
+ }, /* @__PURE__ */ React73.createElement(SelectBase, {
7669
7845
  options: pageSizes.map((size) => size.toString()),
7670
7846
  value: pageSize.toString(),
7671
7847
  onChange: (size) => {
@@ -7676,24 +7852,24 @@ var Pagination = ({
7676
7852
  }
7677
7853
  }
7678
7854
  }
7679
- }))) : /* @__PURE__ */ React71.createElement("div", null), /* @__PURE__ */ React71.createElement(Box, {
7855
+ }))) : /* @__PURE__ */ React73.createElement("div", null), /* @__PURE__ */ React73.createElement(Box, {
7680
7856
  display: "flex",
7681
7857
  justifyContent: "center",
7682
7858
  alignItems: "center",
7683
7859
  className: tw("grow")
7684
- }, /* @__PURE__ */ React71.createElement(IconButton, {
7860
+ }, /* @__PURE__ */ React73.createElement(IconButton, {
7685
7861
  "aria-label": "First",
7686
7862
  onClick: () => onPageChange(1),
7687
7863
  icon: import_chevronBackward.default,
7688
7864
  disabled: !hasPreviousPage
7689
- }), /* @__PURE__ */ React71.createElement(IconButton, {
7865
+ }), /* @__PURE__ */ React73.createElement(IconButton, {
7690
7866
  "aria-label": "Previous",
7691
7867
  onClick: () => onPageChange(currentPage - 1),
7692
7868
  icon: import_chevronLeft3.default,
7693
7869
  disabled: !hasPreviousPage
7694
- }), /* @__PURE__ */ React71.createElement(Box, {
7870
+ }), /* @__PURE__ */ React73.createElement(Box, {
7695
7871
  paddingX: "4"
7696
- }, /* @__PURE__ */ React71.createElement(Typography2.SmallText, null, "Page")), /* @__PURE__ */ React71.createElement(InputBase, {
7872
+ }, /* @__PURE__ */ React73.createElement(Typography2.SmallText, null, "Page")), /* @__PURE__ */ React73.createElement(InputBase, {
7697
7873
  className: classNames(tw("text-center max-w-[40px]"), "no-arrows"),
7698
7874
  type: "number",
7699
7875
  min: 1,
@@ -7716,43 +7892,43 @@ var Pagination = ({
7716
7892
  setValue(1);
7717
7893
  }
7718
7894
  }
7719
- }), /* @__PURE__ */ React71.createElement(Box, {
7895
+ }), /* @__PURE__ */ React73.createElement(Box, {
7720
7896
  paddingX: "4"
7721
- }, /* @__PURE__ */ React71.createElement(Typography2.SmallText, null, "of ", totalPages)), /* @__PURE__ */ React71.createElement(IconButton, {
7897
+ }, /* @__PURE__ */ React73.createElement(Typography2.SmallText, null, "of ", totalPages)), /* @__PURE__ */ React73.createElement(IconButton, {
7722
7898
  "aria-label": "Next",
7723
7899
  onClick: () => onPageChange(currentPage + 1),
7724
7900
  icon: import_chevronRight3.default,
7725
7901
  disabled: !hasNextPage
7726
- }), /* @__PURE__ */ React71.createElement(IconButton, {
7902
+ }), /* @__PURE__ */ React73.createElement(IconButton, {
7727
7903
  "aria-label": "Last",
7728
7904
  onClick: () => onPageChange(totalPages),
7729
7905
  icon: import_chevronForward.default,
7730
7906
  disabled: !hasNextPage
7731
- })), /* @__PURE__ */ React71.createElement("div", null));
7907
+ })), /* @__PURE__ */ React73.createElement("div", null));
7732
7908
  };
7733
7909
 
7734
7910
  // src/components/PopoverDialog/PopoverDialog.tsx
7735
- import React73 from "react";
7736
- import omit15 from "lodash/omit";
7911
+ import React75 from "react";
7912
+ import omit16 from "lodash/omit";
7737
7913
 
7738
7914
  // src/common/PopoverDialog/PopoverDialog.tsx
7739
- import React72 from "react";
7915
+ import React74 from "react";
7740
7916
  var Header = (_a) => {
7741
7917
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7742
- return /* @__PURE__ */ React72.createElement("div", __spreadProps(__spreadValues({}, rest), {
7918
+ return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
7743
7919
  className: classNames(tw("p-5 gap-3 flex items-center"), className)
7744
7920
  }), children);
7745
7921
  };
7746
7922
  var Title = (_a) => {
7747
7923
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7748
- return /* @__PURE__ */ React72.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7924
+ return /* @__PURE__ */ React74.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7749
7925
  htmlTag: "h1",
7750
7926
  variant: "small-strong"
7751
7927
  }), children);
7752
7928
  };
7753
7929
  var Body = (_a) => {
7754
7930
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7755
- return /* @__PURE__ */ React72.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7931
+ return /* @__PURE__ */ React74.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7756
7932
  htmlTag: "div",
7757
7933
  variant: "caption",
7758
7934
  className: classNames(tw("px-5 overflow-y-auto"), className)
@@ -7760,13 +7936,13 @@ var Body = (_a) => {
7760
7936
  };
7761
7937
  var Footer = (_a) => {
7762
7938
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7763
- return /* @__PURE__ */ React72.createElement("div", __spreadProps(__spreadValues({}, rest), {
7939
+ return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
7764
7940
  className: classNames(tw("p-5"), className)
7765
7941
  }), children);
7766
7942
  };
7767
- var Actions = (_a) => {
7943
+ var Actions2 = (_a) => {
7768
7944
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7769
- return /* @__PURE__ */ React72.createElement("div", __spreadProps(__spreadValues({}, rest), {
7945
+ return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
7770
7946
  className: classNames(tw("flex gap-4"), className)
7771
7947
  }), children);
7772
7948
  };
@@ -7775,28 +7951,28 @@ var PopoverDialog = {
7775
7951
  Title,
7776
7952
  Body,
7777
7953
  Footer,
7778
- Actions
7954
+ Actions: Actions2
7779
7955
  };
7780
7956
 
7781
7957
  // src/components/PopoverDialog/PopoverDialog.tsx
7782
7958
  var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction, children }) => {
7783
7959
  const wrapPromptWithBody = (child) => {
7784
7960
  if (isComponentType(child, PopoverDialog2.Prompt)) {
7785
- return /* @__PURE__ */ React73.createElement(Popover2.Panel, {
7961
+ return /* @__PURE__ */ React75.createElement(Popover2.Panel, {
7786
7962
  className: tw("max-w-[300px]")
7787
- }, /* @__PURE__ */ React73.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React73.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React73.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React73.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React73.createElement(Popover2.Button, __spreadValues({
7963
+ }, /* @__PURE__ */ React75.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React75.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React75.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React75.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React75.createElement(Popover2.Button, __spreadValues({
7788
7964
  kind: "secondary-ghost",
7789
7965
  key: secondaryAction.text,
7790
7966
  dense: true
7791
- }, omit15(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React73.createElement(Popover2.Button, __spreadValues({
7967
+ }, omit16(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React75.createElement(Popover2.Button, __spreadValues({
7792
7968
  kind: "ghost",
7793
7969
  key: primaryAction.text,
7794
7970
  dense: true
7795
- }, omit15(primaryAction, "text")), primaryAction.text))));
7971
+ }, omit16(primaryAction, "text")), primaryAction.text))));
7796
7972
  }
7797
7973
  return child;
7798
7974
  };
7799
- return /* @__PURE__ */ React73.createElement(Popover2, {
7975
+ return /* @__PURE__ */ React75.createElement(Popover2, {
7800
7976
  type: "dialog",
7801
7977
  isOpen: open,
7802
7978
  placement,
@@ -7804,10 +7980,10 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
7804
7980
  isKeyboardDismissDisabled: false,
7805
7981
  autoFocus: true,
7806
7982
  containFocus: true
7807
- }, React73.Children.map(children, wrapPromptWithBody));
7983
+ }, React75.Children.map(children, wrapPromptWithBody));
7808
7984
  };
7809
7985
  PopoverDialog2.Trigger = Popover2.Trigger;
7810
- var Prompt = ({ children }) => /* @__PURE__ */ React73.createElement(PopoverDialog.Body, null, children);
7986
+ var Prompt = ({ children }) => /* @__PURE__ */ React75.createElement(PopoverDialog.Body, null, children);
7811
7987
  Prompt.displayName = "PopoverDialog.Prompt";
7812
7988
  PopoverDialog2.Prompt = Prompt;
7813
7989
 
@@ -7816,14 +7992,14 @@ import { createPortal } from "react-dom";
7816
7992
  var Portal = ({ children, to }) => createPortal(children, to);
7817
7993
 
7818
7994
  // src/components/ProgressBar/ProgressBar.tsx
7819
- import React75 from "react";
7995
+ import React77 from "react";
7820
7996
 
7821
7997
  // src/common/ProgressBar/ProgressBar.tsx
7822
- import React74 from "react";
7998
+ import React76 from "react";
7823
7999
  import clamp2 from "lodash/clamp";
7824
8000
  var ProgressBar = (_a) => {
7825
8001
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7826
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
8002
+ return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
7827
8003
  className: classNames(
7828
8004
  tw("relative flex items-center w-full bg-grey-0 h-2 rounded-full overflow-hidden"),
7829
8005
  className
@@ -7839,7 +8015,7 @@ var STATUS_COLORS = {
7839
8015
  ProgressBar.Indicator = (_a) => {
7840
8016
  var _b = _a, { min, max, value, "aria-label": ariaLabel, status, className } = _b, rest = __objRest(_b, ["min", "max", "value", "aria-label", "status", "className"]);
7841
8017
  const completedPercentage = clamp2((value - min) / (max - min) * 100, 0, 100);
7842
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
8018
+ return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
7843
8019
  className: classNames(
7844
8020
  tw("h-2 rounded-full transition-all ease-in-out delay-150"),
7845
8021
  STATUS_COLORS[status],
@@ -7855,11 +8031,11 @@ ProgressBar.Indicator = (_a) => {
7855
8031
  };
7856
8032
  ProgressBar.Labels = (_a) => {
7857
8033
  var _b = _a, { children, startLabel, endLabel, className } = _b, rest = __objRest(_b, ["children", "startLabel", "endLabel", "className"]);
7858
- return /* @__PURE__ */ React74.createElement("div", {
8034
+ return /* @__PURE__ */ React76.createElement("div", {
7859
8035
  className: classNames(tw("flex flex-row"), className)
7860
- }, /* @__PURE__ */ React74.createElement("span", __spreadProps(__spreadValues({}, rest), {
8036
+ }, /* @__PURE__ */ React76.createElement("span", __spreadProps(__spreadValues({}, rest), {
7861
8037
  className: tw("grow text-grey-70 typography-caption")
7862
- }), startLabel), /* @__PURE__ */ React74.createElement("span", __spreadProps(__spreadValues({}, rest), {
8038
+ }), startLabel), /* @__PURE__ */ React76.createElement("span", __spreadProps(__spreadValues({}, rest), {
7863
8039
  className: tw("grow text-grey-70 typography-caption text-right")
7864
8040
  }), endLabel));
7865
8041
  };
@@ -7877,7 +8053,7 @@ var ProgressBar2 = (props) => {
7877
8053
  if (min > max) {
7878
8054
  throw new Error("`min` value provided to `ProgressBar` is greater than `max` value.");
7879
8055
  }
7880
- const progress = /* @__PURE__ */ React75.createElement(ProgressBar, null, /* @__PURE__ */ React75.createElement(ProgressBar.Indicator, {
8056
+ const progress = /* @__PURE__ */ React77.createElement(ProgressBar, null, /* @__PURE__ */ React77.createElement(ProgressBar.Indicator, {
7881
8057
  status: value === max ? completedStatus : progresStatus,
7882
8058
  min,
7883
8059
  max,
@@ -7887,25 +8063,25 @@ var ProgressBar2 = (props) => {
7887
8063
  if (props.dense) {
7888
8064
  return progress;
7889
8065
  }
7890
- return /* @__PURE__ */ React75.createElement("div", null, progress, /* @__PURE__ */ React75.createElement(ProgressBar.Labels, {
8066
+ return /* @__PURE__ */ React77.createElement("div", null, progress, /* @__PURE__ */ React77.createElement(ProgressBar.Labels, {
7891
8067
  className: tw("py-2"),
7892
8068
  startLabel: props.startLabel,
7893
8069
  endLabel: props.endLabel
7894
8070
  }));
7895
8071
  };
7896
- ProgressBar2.Skeleton = () => /* @__PURE__ */ React75.createElement(Skeleton, {
8072
+ ProgressBar2.Skeleton = () => /* @__PURE__ */ React77.createElement(Skeleton, {
7897
8073
  height: 4,
7898
8074
  display: "block"
7899
8075
  });
7900
8076
 
7901
8077
  // src/components/RadioButton/RadioButton.tsx
7902
- import React76 from "react";
7903
- var RadioButton2 = React76.forwardRef(
8078
+ import React78 from "react";
8079
+ var RadioButton2 = React78.forwardRef(
7904
8080
  (_a, ref) => {
7905
8081
  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"]);
7906
8082
  var _a2;
7907
8083
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
7908
- return !readOnly || isChecked ? /* @__PURE__ */ React76.createElement(ControlLabel, {
8084
+ return !readOnly || isChecked ? /* @__PURE__ */ React78.createElement(ControlLabel, {
7909
8085
  htmlFor: id,
7910
8086
  label: children,
7911
8087
  "aria-label": ariaLabel,
@@ -7913,7 +8089,7 @@ var RadioButton2 = React76.forwardRef(
7913
8089
  readOnly,
7914
8090
  disabled,
7915
8091
  style: { gap: "0 8px" }
7916
- }, !readOnly && /* @__PURE__ */ React76.createElement(RadioButton, __spreadProps(__spreadValues({
8092
+ }, !readOnly && /* @__PURE__ */ React78.createElement(RadioButton, __spreadProps(__spreadValues({
7917
8093
  id,
7918
8094
  ref,
7919
8095
  name
@@ -7923,22 +8099,22 @@ var RadioButton2 = React76.forwardRef(
7923
8099
  }))) : null;
7924
8100
  }
7925
8101
  );
7926
- var RadioButtonSkeleton = () => /* @__PURE__ */ React76.createElement("div", {
8102
+ var RadioButtonSkeleton = () => /* @__PURE__ */ React78.createElement("div", {
7927
8103
  className: tw("flex gap-3")
7928
- }, /* @__PURE__ */ React76.createElement(Skeleton, {
8104
+ }, /* @__PURE__ */ React78.createElement(Skeleton, {
7929
8105
  height: 20,
7930
8106
  width: 20
7931
- }), /* @__PURE__ */ React76.createElement(Skeleton, {
8107
+ }), /* @__PURE__ */ React78.createElement(Skeleton, {
7932
8108
  height: 20,
7933
8109
  width: 150
7934
8110
  }));
7935
8111
  RadioButton2.Skeleton = RadioButtonSkeleton;
7936
8112
 
7937
8113
  // src/components/RadioButtonGroup/RadioButtonGroup.tsx
7938
- import React77 from "react";
8114
+ import React79 from "react";
7939
8115
  import uniqueId8 from "lodash/uniqueId";
7940
8116
  var isRadioButton = (c) => {
7941
- return React77.isValidElement(c) && c.type === RadioButton2;
8117
+ return React79.isValidElement(c) && c.type === RadioButton2;
7942
8118
  };
7943
8119
  var RadioButtonGroup = (_a) => {
7944
8120
  var _b = _a, {
@@ -7961,7 +8137,7 @@ var RadioButtonGroup = (_a) => {
7961
8137
  "children"
7962
8138
  ]);
7963
8139
  var _a2;
7964
- const [value, setValue] = React77.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
8140
+ const [value, setValue] = React79.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
7965
8141
  const errorMessageId = uniqueId8();
7966
8142
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7967
8143
  const labelControlProps = getLabelControlProps(props);
@@ -7972,14 +8148,14 @@ var RadioButtonGroup = (_a) => {
7972
8148
  setValue(e.target.value);
7973
8149
  onChange == null ? void 0 : onChange(e.target.value);
7974
8150
  };
7975
- const content = React77.Children.map(children, (c) => {
8151
+ const content = React79.Children.map(children, (c) => {
7976
8152
  var _a3, _b2, _c;
7977
8153
  if (!isRadioButton(c)) {
7978
8154
  return null;
7979
8155
  }
7980
8156
  const defaultChecked = defaultValue === void 0 ? void 0 : c.props.value === defaultValue;
7981
8157
  const checked = value === void 0 ? void 0 : c.props.value === value;
7982
- return React77.cloneElement(c, {
8158
+ return React79.cloneElement(c, {
7983
8159
  name,
7984
8160
  defaultChecked: (_a3 = c.props.defaultChecked) != null ? _a3 : defaultChecked,
7985
8161
  checked: (_b2 = c.props.checked) != null ? _b2 : checked,
@@ -7988,11 +8164,11 @@ var RadioButtonGroup = (_a) => {
7988
8164
  readOnly
7989
8165
  });
7990
8166
  });
7991
- return /* @__PURE__ */ React77.createElement(LabelControl, __spreadValues(__spreadValues({
8167
+ return /* @__PURE__ */ React79.createElement(LabelControl, __spreadValues(__spreadValues({
7992
8168
  fieldset: true
7993
- }, labelControlProps), errorProps), cols && /* @__PURE__ */ React77.createElement(InputGroup, {
8169
+ }, labelControlProps), errorProps), cols && /* @__PURE__ */ React79.createElement(InputGroup, {
7994
8170
  cols
7995
- }, content), !cols && /* @__PURE__ */ React77.createElement(Flexbox, {
8171
+ }, content), !cols && /* @__PURE__ */ React79.createElement(Flexbox, {
7996
8172
  direction,
7997
8173
  alignItems: "flex-start",
7998
8174
  colGap: "8",
@@ -8001,80 +8177,80 @@ var RadioButtonGroup = (_a) => {
8001
8177
  }, content));
8002
8178
  };
8003
8179
  var RadioButtonGroupSkeleton = ({ direction = "row", options = 2 }) => {
8004
- return /* @__PURE__ */ React77.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React77.createElement("div", {
8180
+ return /* @__PURE__ */ React79.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React79.createElement("div", {
8005
8181
  className: tw("flex flex-wrap", {
8006
8182
  "flex-row gap-8": direction === "row",
8007
8183
  "flex-col gap-2": direction === "column"
8008
8184
  })
8009
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React77.createElement(RadioButton2.Skeleton, {
8185
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React79.createElement(RadioButton2.Skeleton, {
8010
8186
  key
8011
8187
  }))));
8012
8188
  };
8013
8189
  RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
8014
8190
 
8015
8191
  // src/components/Section/Section.tsx
8016
- import React79 from "react";
8192
+ import React81 from "react";
8017
8193
  import castArray4 from "lodash/castArray";
8018
8194
 
8019
8195
  // src/common/Section/Section.tsx
8020
- import React78 from "react";
8196
+ import React80 from "react";
8021
8197
  var Section2 = (_a) => {
8022
8198
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8023
- return /* @__PURE__ */ React78.createElement(Box, __spreadValues({
8199
+ return /* @__PURE__ */ React80.createElement(Box, __spreadValues({
8024
8200
  borderColor: "grey-5",
8025
8201
  borderWidth: "1px"
8026
8202
  }, rest), children);
8027
8203
  };
8028
8204
  Section2.Header = (_a) => {
8029
8205
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8030
- return /* @__PURE__ */ React78.createElement("div", __spreadProps(__spreadValues({}, rest), {
8206
+ return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8031
8207
  className: classNames(tw("px-6 py-5 flex gap-5 justify-between items-center"), className)
8032
8208
  }), children);
8033
8209
  };
8034
8210
  Section2.TitleContainer = (_a) => {
8035
8211
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8036
- return /* @__PURE__ */ React78.createElement("div", __spreadProps(__spreadValues({}, rest), {
8212
+ return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8037
8213
  className: classNames(tw("flex flex-col grow gap-2"), className)
8038
8214
  }), children);
8039
8215
  };
8040
8216
  Section2.Title = (_a) => {
8041
8217
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8042
- return /* @__PURE__ */ React78.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
8218
+ return /* @__PURE__ */ React80.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
8043
8219
  color: "black"
8044
8220
  }), children);
8045
8221
  };
8046
8222
  Section2.Subtitle = (_a) => {
8047
8223
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8048
- return /* @__PURE__ */ React78.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
8224
+ return /* @__PURE__ */ React80.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
8049
8225
  color: "grey-70"
8050
8226
  }), children);
8051
8227
  };
8052
8228
  Section2.Actions = (_a) => {
8053
8229
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8054
- return /* @__PURE__ */ React78.createElement("div", __spreadProps(__spreadValues({}, rest), {
8230
+ return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8055
8231
  className: classNames(tw("flex gap-4 justify-end"), className)
8056
8232
  }), children);
8057
8233
  };
8058
8234
  Section2.Body = (_a) => {
8059
8235
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8060
- return /* @__PURE__ */ React78.createElement("div", __spreadProps(__spreadValues({}, rest), {
8236
+ return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8061
8237
  className: classNames(tw("p-6"), className)
8062
- }), /* @__PURE__ */ React78.createElement(Typography, {
8238
+ }), /* @__PURE__ */ React80.createElement(Typography, {
8063
8239
  htmlTag: "div",
8064
8240
  color: "grey-70"
8065
8241
  }, children));
8066
8242
  };
8067
8243
 
8068
8244
  // src/components/Section/Section.tsx
8069
- var Section3 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React79.createElement(Section2, null, title && /* @__PURE__ */ React79.createElement(React79.Fragment, null, /* @__PURE__ */ React79.createElement(Section2.Header, null, /* @__PURE__ */ React79.createElement(Section2.TitleContainer, null, /* @__PURE__ */ React79.createElement(Section2.Title, null, title), subtitle && /* @__PURE__ */ React79.createElement(Section2.Subtitle, null, subtitle)), /* @__PURE__ */ React79.createElement(Section2.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
8245
+ var Section3 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React81.createElement(Section2, null, title && /* @__PURE__ */ React81.createElement(React81.Fragment, null, /* @__PURE__ */ React81.createElement(Section2.Header, null, /* @__PURE__ */ React81.createElement(Section2.TitleContainer, null, /* @__PURE__ */ React81.createElement(Section2.Title, null, title), subtitle && /* @__PURE__ */ React81.createElement(Section2.Subtitle, null, subtitle)), /* @__PURE__ */ React81.createElement(Section2.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
8070
8246
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
8071
- return /* @__PURE__ */ React79.createElement(SecondaryButton, __spreadValues({
8247
+ return /* @__PURE__ */ React81.createElement(SecondaryButton, __spreadValues({
8072
8248
  key: text
8073
8249
  }, action), text);
8074
- }))), /* @__PURE__ */ React79.createElement(Divider2, null)), /* @__PURE__ */ React79.createElement(Section2.Body, null, children));
8250
+ }))), /* @__PURE__ */ React81.createElement(Divider2, null)), /* @__PURE__ */ React81.createElement(Section2.Body, null, children));
8075
8251
 
8076
8252
  // src/components/SegmentedControl/SegmentedControl.tsx
8077
- import React80 from "react";
8253
+ import React82 from "react";
8078
8254
  var SegmentedControl = (_a) => {
8079
8255
  var _b = _a, {
8080
8256
  children,
@@ -8091,7 +8267,7 @@ var SegmentedControl = (_a) => {
8091
8267
  "selected",
8092
8268
  "className"
8093
8269
  ]);
8094
- return /* @__PURE__ */ React80.createElement("button", __spreadProps(__spreadValues({
8270
+ return /* @__PURE__ */ React82.createElement("button", __spreadProps(__spreadValues({
8095
8271
  type: "button"
8096
8272
  }, rest), {
8097
8273
  className: classNames(
@@ -8122,11 +8298,11 @@ var SegmentedControlGroup = (_a) => {
8122
8298
  "border border-grey-20 text-grey-50": variant === "outlined",
8123
8299
  "bg-grey-0": variant === "raised"
8124
8300
  });
8125
- return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8301
+ return /* @__PURE__ */ React82.createElement("div", __spreadProps(__spreadValues({}, rest), {
8126
8302
  className: classNames(classes, className)
8127
- }), React80.Children.map(
8303
+ }), React82.Children.map(
8128
8304
  children,
8129
- (child) => React80.cloneElement(child, {
8305
+ (child) => React82.cloneElement(child, {
8130
8306
  dense,
8131
8307
  variant,
8132
8308
  onClick: () => onChange(child.props.value),
@@ -8164,14 +8340,14 @@ var getCommonClassNames = (dense, selected) => tw(
8164
8340
  );
8165
8341
 
8166
8342
  // src/components/Stepper/Stepper.tsx
8167
- import React82 from "react";
8343
+ import React84 from "react";
8168
8344
 
8169
8345
  // src/common/Stepper/Stepper.tsx
8170
- import React81 from "react";
8346
+ import React83 from "react";
8171
8347
  var import_tick5 = __toESM(require_tick());
8172
8348
  var Stepper = (_a) => {
8173
8349
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8174
- return /* @__PURE__ */ React81.createElement("div", __spreadProps(__spreadValues({}, rest), {
8350
+ return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8175
8351
  className: classNames(className)
8176
8352
  }));
8177
8353
  };
@@ -8185,7 +8361,7 @@ var ConnectorContainer = (_a) => {
8185
8361
  "completed",
8186
8362
  "dense"
8187
8363
  ]);
8188
- return /* @__PURE__ */ React81.createElement("div", __spreadProps(__spreadValues({}, rest), {
8364
+ return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8189
8365
  className: classNames(
8190
8366
  tw("absolute w-full -left-1/2", {
8191
8367
  "top-[3px] px-[14px]": Boolean(dense),
@@ -8197,7 +8373,7 @@ var ConnectorContainer = (_a) => {
8197
8373
  };
8198
8374
  var Connector = (_a) => {
8199
8375
  var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
8200
- return /* @__PURE__ */ React81.createElement("div", __spreadProps(__spreadValues({}, rest), {
8376
+ return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8201
8377
  className: classNames(
8202
8378
  tw("w-full", {
8203
8379
  "bg-grey-20": !completed,
@@ -8211,7 +8387,7 @@ var Connector = (_a) => {
8211
8387
  };
8212
8388
  var Step = (_a) => {
8213
8389
  var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
8214
- return /* @__PURE__ */ React81.createElement("div", __spreadProps(__spreadValues({}, rest), {
8390
+ return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8215
8391
  className: classNames(
8216
8392
  tw("flex flex-col items-center text-grey-90 relative text-center", {
8217
8393
  "text-grey-20": state === "inactive"
@@ -8232,13 +8408,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
8232
8408
  });
8233
8409
  var Indicator = (_a) => {
8234
8410
  var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
8235
- return /* @__PURE__ */ React81.createElement("div", __spreadProps(__spreadValues({}, rest), {
8411
+ return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8236
8412
  className: classNames(
8237
8413
  tw("rounded-full flex justify-center items-center mx-2 mb-3"),
8238
8414
  dense ? getDenseClassNames(state) : getClassNames(state),
8239
8415
  className
8240
8416
  )
8241
- }), state === "completed" ? /* @__PURE__ */ React81.createElement(InlineIcon, {
8417
+ }), state === "completed" ? /* @__PURE__ */ React83.createElement(InlineIcon, {
8242
8418
  icon: import_tick5.default
8243
8419
  }) : dense ? null : children);
8244
8420
  };
@@ -8249,25 +8425,25 @@ Stepper.ConnectorContainer = ConnectorContainer;
8249
8425
 
8250
8426
  // src/components/Stepper/Stepper.tsx
8251
8427
  var Stepper2 = ({ children, activeIndex, dense }) => {
8252
- const steps = React82.Children.count(children);
8253
- return /* @__PURE__ */ React82.createElement(Stepper, {
8428
+ const steps = React84.Children.count(children);
8429
+ return /* @__PURE__ */ React84.createElement(Stepper, {
8254
8430
  role: "list"
8255
- }, /* @__PURE__ */ React82.createElement(Template, {
8431
+ }, /* @__PURE__ */ React84.createElement(Template, {
8256
8432
  columns: steps
8257
- }, React82.Children.map(children, (child, index) => {
8433
+ }, React84.Children.map(children, (child, index) => {
8258
8434
  if (!isComponentType(child, Step2)) {
8259
8435
  return new Error("<Stepper> can only have <Stepper.Step> components as children");
8260
8436
  } else {
8261
8437
  const state = index > activeIndex ? "inactive" : index === activeIndex ? "active" : "completed";
8262
- return /* @__PURE__ */ React82.createElement(Stepper.Step, {
8438
+ return /* @__PURE__ */ React84.createElement(Stepper.Step, {
8263
8439
  state,
8264
8440
  "aria-current": state === "active" ? "step" : false,
8265
8441
  role: "listitem"
8266
- }, index > 0 && index <= steps && /* @__PURE__ */ React82.createElement(Stepper.ConnectorContainer, {
8442
+ }, index > 0 && index <= steps && /* @__PURE__ */ React84.createElement(Stepper.ConnectorContainer, {
8267
8443
  dense
8268
- }, /* @__PURE__ */ React82.createElement(Stepper.ConnectorContainer.Connector, {
8444
+ }, /* @__PURE__ */ React84.createElement(Stepper.ConnectorContainer.Connector, {
8269
8445
  completed: state === "completed" || state === "active"
8270
- })), /* @__PURE__ */ React82.createElement(Stepper.Step.Indicator, {
8446
+ })), /* @__PURE__ */ React84.createElement(Stepper.Step.Indicator, {
8271
8447
  state,
8272
8448
  dense
8273
8449
  }, index + 1), child.props.children);
@@ -8278,36 +8454,37 @@ var Step2 = () => null;
8278
8454
  Stepper2.Step = Step2;
8279
8455
 
8280
8456
  // src/components/Switch/Switch.tsx
8281
- import React84 from "react";
8457
+ import React86 from "react";
8282
8458
 
8283
8459
  // src/common/Switch/Switch.tsx
8284
- import React83 from "react";
8285
- var Switch = React83.forwardRef(
8460
+ import React85 from "react";
8461
+ var Switch = React85.forwardRef(
8286
8462
  (_a, ref) => {
8287
8463
  var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
8288
- return /* @__PURE__ */ React83.createElement("span", {
8464
+ return /* @__PURE__ */ React85.createElement("span", {
8289
8465
  className: tw("relative inline-flex justify-center items-center self-center group")
8290
- }, /* @__PURE__ */ React83.createElement("input", __spreadProps(__spreadValues({
8466
+ }, /* @__PURE__ */ React85.createElement("input", __spreadProps(__spreadValues({
8291
8467
  id,
8292
8468
  ref,
8293
8469
  type: "checkbox",
8294
8470
  name
8295
8471
  }, props), {
8296
- className: tw("opacity-0 peer/switch w-0 h-0"),
8472
+ className: classNames(
8473
+ tw(
8474
+ "appearance-none peer/switch rounded-full inline-block w-[34px] h-[20px] transition duration-300",
8475
+ "outline-none focus:border border-info-70 bg-grey-20",
8476
+ "cursor-pointer disabled:cursor-not-allowed",
8477
+ {
8478
+ "hover:bg-grey-30 checked:bg-navyBlue-100 hover:checked:bg-navyBlue-100": !disabled,
8479
+ "bg-grey-5 checked:opacity-40": disabled
8480
+ }
8481
+ )
8482
+ ),
8297
8483
  readOnly,
8298
8484
  disabled
8299
- })), /* @__PURE__ */ React83.createElement("span", {
8485
+ })), /* @__PURE__ */ React85.createElement("span", {
8300
8486
  className: tw(
8301
- "rounded-full inline-block w-[34px] h-[20px] transition duration-300",
8302
- "peer-focus/switch:border border-info-70 bg-grey-20",
8303
- {
8304
- "group-hover:bg-grey-30 peer-checked/switch:bg-navyBlue-100": !disabled,
8305
- "bg-grey-5 peer-checked/switch:opacity-40": disabled
8306
- }
8307
- )
8308
- }), /* @__PURE__ */ React83.createElement("span", {
8309
- className: tw(
8310
- "rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
8487
+ "pointer-events-none rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
8311
8488
  "bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
8312
8489
  {
8313
8490
  "shadow-4dp": !disabled
@@ -8318,12 +8495,12 @@ var Switch = React83.forwardRef(
8318
8495
  );
8319
8496
 
8320
8497
  // src/components/Switch/Switch.tsx
8321
- var Switch2 = React84.forwardRef(
8498
+ var Switch2 = React86.forwardRef(
8322
8499
  (_a, ref) => {
8323
8500
  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"]);
8324
8501
  var _a2;
8325
8502
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
8326
- return !readOnly || isChecked ? /* @__PURE__ */ React84.createElement(ControlLabel, {
8503
+ return !readOnly || isChecked ? /* @__PURE__ */ React86.createElement(ControlLabel, {
8327
8504
  htmlFor: id,
8328
8505
  label: children,
8329
8506
  "aria-label": ariaLabel,
@@ -8331,7 +8508,7 @@ var Switch2 = React84.forwardRef(
8331
8508
  readOnly,
8332
8509
  disabled,
8333
8510
  style: { gap: "0 8px" }
8334
- }, !readOnly && /* @__PURE__ */ React84.createElement(Switch, __spreadProps(__spreadValues({
8511
+ }, !readOnly && /* @__PURE__ */ React86.createElement(Switch, __spreadProps(__spreadValues({
8335
8512
  id,
8336
8513
  ref,
8337
8514
  name
@@ -8341,19 +8518,19 @@ var Switch2 = React84.forwardRef(
8341
8518
  }))) : null;
8342
8519
  }
8343
8520
  );
8344
- var SwitchSkeleton = () => /* @__PURE__ */ React84.createElement("div", {
8521
+ var SwitchSkeleton = () => /* @__PURE__ */ React86.createElement("div", {
8345
8522
  className: tw("flex gap-3")
8346
- }, /* @__PURE__ */ React84.createElement(Skeleton, {
8523
+ }, /* @__PURE__ */ React86.createElement(Skeleton, {
8347
8524
  height: 20,
8348
8525
  width: 35
8349
- }), /* @__PURE__ */ React84.createElement(Skeleton, {
8526
+ }), /* @__PURE__ */ React86.createElement(Skeleton, {
8350
8527
  height: 20,
8351
8528
  width: 150
8352
8529
  }));
8353
8530
  Switch2.Skeleton = SwitchSkeleton;
8354
8531
 
8355
8532
  // src/components/SwitchGroup/SwitchGroup.tsx
8356
- import React85, { useState as useState11 } from "react";
8533
+ import React87, { useState as useState11 } from "react";
8357
8534
  import uniqueId9 from "lodash/uniqueId";
8358
8535
  var SwitchGroup = (_a) => {
8359
8536
  var _b = _a, {
@@ -8385,11 +8562,11 @@ var SwitchGroup = (_a) => {
8385
8562
  setSelectedItems(updated);
8386
8563
  onChange == null ? void 0 : onChange(updated);
8387
8564
  };
8388
- return /* @__PURE__ */ React85.createElement(LabelControl, __spreadValues(__spreadValues({
8565
+ return /* @__PURE__ */ React87.createElement(LabelControl, __spreadValues(__spreadValues({
8389
8566
  fieldset: true
8390
- }, labelControlProps), errorProps), /* @__PURE__ */ React85.createElement(InputGroup, {
8567
+ }, labelControlProps), errorProps), /* @__PURE__ */ React87.createElement(InputGroup, {
8391
8568
  cols
8392
- }, React85.Children.map(children, (c) => {
8569
+ }, React87.Children.map(children, (c) => {
8393
8570
  var _a3, _b2, _c, _d;
8394
8571
  if (!isComponentType(c, Switch2)) {
8395
8572
  return null;
@@ -8397,7 +8574,7 @@ var SwitchGroup = (_a) => {
8397
8574
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
8398
8575
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
8399
8576
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
8400
- return React85.cloneElement(c, {
8577
+ return React87.cloneElement(c, {
8401
8578
  defaultChecked: (_b2 = c.props.defaultChecked) != null ? _b2 : defaultChecked,
8402
8579
  checked: (_c = c.props.checked) != null ? _c : checked,
8403
8580
  onChange: (_d = c.props.onChange) != null ? _d : handleChange,
@@ -8407,19 +8584,19 @@ var SwitchGroup = (_a) => {
8407
8584
  })));
8408
8585
  };
8409
8586
  var SwitchGroupSkeleton = ({ options = 2 }) => {
8410
- return /* @__PURE__ */ React85.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React85.createElement("div", {
8587
+ return /* @__PURE__ */ React87.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React87.createElement("div", {
8411
8588
  className: tw("flex flex-wrap flex-col gap-2")
8412
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React85.createElement(Switch2.Skeleton, {
8589
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React87.createElement(Switch2.Skeleton, {
8413
8590
  key
8414
8591
  }))));
8415
8592
  };
8416
8593
  SwitchGroup.Skeleton = SwitchGroupSkeleton;
8417
8594
 
8418
8595
  // src/components/TagLabel/TagLabel.tsx
8419
- import React86 from "react";
8596
+ import React88 from "react";
8420
8597
  var TagLabel = (_a) => {
8421
8598
  var _b = _a, { title, dense = false } = _b, rest = __objRest(_b, ["title", "dense"]);
8422
- return /* @__PURE__ */ React86.createElement("span", __spreadProps(__spreadValues({}, rest), {
8599
+ return /* @__PURE__ */ React88.createElement("span", __spreadProps(__spreadValues({}, rest), {
8423
8600
  className: tw("rounded-full text-white bg-primary-70", {
8424
8601
  "py-2 px-4 typography-caption": !dense,
8425
8602
  "py-2 px-3 typography-caption-small": dense
@@ -8428,14 +8605,14 @@ var TagLabel = (_a) => {
8428
8605
  };
8429
8606
 
8430
8607
  // src/components/Textarea/Textarea.tsx
8431
- import React87, { useRef as useRef11, useState as useState12 } from "react";
8432
- import omit16 from "lodash/omit";
8608
+ import React89, { useRef as useRef11, useState as useState12 } from "react";
8609
+ import omit17 from "lodash/omit";
8433
8610
  import toString2 from "lodash/toString";
8434
8611
  import uniqueId10 from "lodash/uniqueId";
8435
- var TextareaBase = React87.forwardRef(
8612
+ var TextareaBase = React89.forwardRef(
8436
8613
  (_a, ref) => {
8437
8614
  var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
8438
- return /* @__PURE__ */ React87.createElement("textarea", __spreadProps(__spreadValues({
8615
+ return /* @__PURE__ */ React89.createElement("textarea", __spreadProps(__spreadValues({
8439
8616
  ref
8440
8617
  }, props), {
8441
8618
  readOnly,
@@ -8443,23 +8620,23 @@ var TextareaBase = React87.forwardRef(
8443
8620
  }));
8444
8621
  }
8445
8622
  );
8446
- TextareaBase.Skeleton = () => /* @__PURE__ */ React87.createElement(Skeleton, {
8623
+ TextareaBase.Skeleton = () => /* @__PURE__ */ React89.createElement(Skeleton, {
8447
8624
  height: 58
8448
8625
  });
8449
- var Textarea = React87.forwardRef((props, ref) => {
8626
+ var Textarea = React89.forwardRef((props, ref) => {
8450
8627
  var _a, _b, _c;
8451
8628
  const [value, setValue] = useState12((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
8452
8629
  const id = useRef11((_c = props.id) != null ? _c : `textarea-${uniqueId10()}`);
8453
8630
  const errorMessageId = uniqueId10();
8454
8631
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8455
8632
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
8456
- const baseProps = omit16(props, Object.keys(labelControlProps));
8457
- return /* @__PURE__ */ React87.createElement(LabelControl, __spreadValues({
8633
+ const baseProps = omit17(props, Object.keys(labelControlProps));
8634
+ return /* @__PURE__ */ React89.createElement(LabelControl, __spreadValues({
8458
8635
  id: `${id.current}-label`,
8459
8636
  htmlFor: id.current,
8460
8637
  messageId: errorMessageId,
8461
8638
  length: value !== void 0 ? toString2(value).length : void 0
8462
- }, labelControlProps), /* @__PURE__ */ React87.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
8639
+ }, labelControlProps), /* @__PURE__ */ React89.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
8463
8640
  ref
8464
8641
  }, baseProps), errorProps), {
8465
8642
  id: id.current,
@@ -8475,47 +8652,47 @@ var Textarea = React87.forwardRef((props, ref) => {
8475
8652
  valid: props.valid
8476
8653
  })));
8477
8654
  });
8478
- var TextAreaSkeleton = () => /* @__PURE__ */ React87.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React87.createElement(TextareaBase.Skeleton, null));
8655
+ var TextAreaSkeleton = () => /* @__PURE__ */ React89.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React89.createElement(TextareaBase.Skeleton, null));
8479
8656
  Textarea.Skeleton = TextAreaSkeleton;
8480
8657
 
8481
8658
  // src/components/Timeline/Timeline.tsx
8482
- import React89 from "react";
8659
+ import React91 from "react";
8483
8660
 
8484
8661
  // src/common/Timeline/Timeline.tsx
8485
- import React88 from "react";
8662
+ import React90 from "react";
8486
8663
  var Timeline = (_a) => {
8487
8664
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8488
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8665
+ return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8489
8666
  className: classNames(tw("grid grid-cols-[16px_1fr] gap-x-4"), className)
8490
8667
  }));
8491
8668
  };
8492
- var Content = (_a) => {
8669
+ var Content2 = (_a) => {
8493
8670
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8494
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8671
+ return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8495
8672
  className: classNames(tw("pb-6"), className)
8496
8673
  }));
8497
8674
  };
8498
8675
  var Separator2 = (_a) => {
8499
8676
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8500
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8677
+ return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8501
8678
  className: classNames(tw("flex items-center justify-center h-5 w-5"), className)
8502
8679
  }));
8503
8680
  };
8504
8681
  var LineContainer = (_a) => {
8505
8682
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8506
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8683
+ return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8507
8684
  className: classNames(tw("flex justify-center py-1"), className)
8508
8685
  }));
8509
8686
  };
8510
8687
  var Line = (_a) => {
8511
8688
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8512
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8689
+ return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8513
8690
  className: classNames(tw("w-1 bg-grey-5 h-full justify-self-center"), className)
8514
8691
  }));
8515
8692
  };
8516
8693
  var Dot = (_a) => {
8517
8694
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8518
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8695
+ return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8519
8696
  className: classNames(tw("bg-grey-30 h-[6px] w-[6px] rounded"), className)
8520
8697
  }));
8521
8698
  };
@@ -8523,67 +8700,68 @@ Separator2.Dot = Dot;
8523
8700
  LineContainer.Line = Line;
8524
8701
  Timeline.Separator = Separator2;
8525
8702
  Timeline.LineContainer = LineContainer;
8526
- Timeline.Content = Content;
8703
+ Timeline.Content = Content2;
8527
8704
 
8528
8705
  // src/components/Timeline/Timeline.tsx
8529
8706
  var import_error4 = __toESM(require_error());
8530
8707
  var import_time = __toESM(require_time());
8531
8708
  var import_warningSign4 = __toESM(require_warningSign());
8532
8709
  var TimelineItem = () => null;
8533
- var Timeline2 = ({ children }) => /* @__PURE__ */ React89.createElement("div", null, React89.Children.map(children, (item) => {
8710
+ var Timeline2 = ({ children }) => /* @__PURE__ */ React91.createElement("div", null, React91.Children.map(children, (item) => {
8534
8711
  if (!isComponentType(item, TimelineItem)) {
8535
8712
  throw new Error("<Timeline> can only have <Timeline.Item> components as children");
8536
8713
  } else {
8537
8714
  const { props, key } = item;
8538
- return /* @__PURE__ */ React89.createElement(Timeline, {
8715
+ return /* @__PURE__ */ React91.createElement(Timeline, {
8539
8716
  key: key != null ? key : props.title
8540
- }, /* @__PURE__ */ React89.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React89.createElement(Icon, {
8717
+ }, /* @__PURE__ */ React91.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React91.createElement(Icon, {
8541
8718
  icon: import_error4.default,
8542
8719
  color: "error-30"
8543
- }) : props.variant === "warning" ? /* @__PURE__ */ React89.createElement(Icon, {
8720
+ }) : props.variant === "warning" ? /* @__PURE__ */ React91.createElement(Icon, {
8544
8721
  icon: import_warningSign4.default,
8545
8722
  color: "warning-30"
8546
- }) : props.variant === "info" ? /* @__PURE__ */ React89.createElement(Icon, {
8723
+ }) : props.variant === "info" ? /* @__PURE__ */ React91.createElement(Icon, {
8547
8724
  icon: import_time.default,
8548
8725
  color: "info-30"
8549
- }) : /* @__PURE__ */ React89.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React89.createElement(Typography2.Caption, {
8726
+ }) : /* @__PURE__ */ React91.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React91.createElement(Typography2.Caption, {
8550
8727
  color: "grey-50"
8551
- }, props.title), /* @__PURE__ */ React89.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React89.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React89.createElement(Timeline.Content, null, /* @__PURE__ */ React89.createElement(Typography2, null, props.children)));
8728
+ }, props.title), /* @__PURE__ */ React91.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React91.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React91.createElement(Timeline.Content, null, /* @__PURE__ */ React91.createElement(Typography2.Small, null, props.children)));
8552
8729
  }
8553
8730
  }));
8554
- var TimelineItemSkeleton = () => /* @__PURE__ */ React89.createElement(Timeline, null, /* @__PURE__ */ React89.createElement(Timeline.Separator, null, /* @__PURE__ */ React89.createElement(Skeleton, {
8731
+ var TimelineItemSkeleton = () => /* @__PURE__ */ React91.createElement(Timeline, null, /* @__PURE__ */ React91.createElement(Timeline.Separator, null, /* @__PURE__ */ React91.createElement(Skeleton, {
8555
8732
  width: 6,
8556
8733
  height: 6,
8557
8734
  rounded: true
8558
- })), /* @__PURE__ */ React89.createElement(Skeleton, {
8735
+ })), /* @__PURE__ */ React91.createElement(Skeleton, {
8559
8736
  height: 12,
8560
8737
  width: 120
8561
- }), /* @__PURE__ */ React89.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React89.createElement(Skeleton, {
8562
- width: 2
8563
- })), /* @__PURE__ */ React89.createElement(Timeline.Content, null, /* @__PURE__ */ React89.createElement(Box, {
8738
+ }), /* @__PURE__ */ React91.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React91.createElement(Skeleton, {
8739
+ width: 2,
8740
+ height: "100%"
8741
+ })), /* @__PURE__ */ React91.createElement(Timeline.Content, null, /* @__PURE__ */ React91.createElement(Box, {
8564
8742
  display: "flex",
8565
8743
  flexDirection: "column",
8566
8744
  gap: "3"
8567
- }, /* @__PURE__ */ React89.createElement(Skeleton, {
8745
+ }, /* @__PURE__ */ React91.createElement(Skeleton, {
8568
8746
  height: 32,
8569
8747
  width: "100%"
8570
- }), /* @__PURE__ */ React89.createElement(Skeleton, {
8748
+ }), /* @__PURE__ */ React91.createElement(Skeleton, {
8571
8749
  height: 32,
8572
8750
  width: "73%"
8573
- }), /* @__PURE__ */ React89.createElement(Skeleton, {
8751
+ }), /* @__PURE__ */ React91.createElement(Skeleton, {
8574
8752
  height: 32,
8575
8753
  width: "80%"
8576
8754
  }))));
8577
- var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React89.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React89.createElement(TimelineItemSkeleton, {
8755
+ var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React91.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React91.createElement(TimelineItemSkeleton, {
8578
8756
  key
8579
8757
  })));
8580
8758
  Timeline2.Item = TimelineItem;
8581
8759
  Timeline2.Skeleton = TimelineSkeleton;
8582
8760
 
8583
8761
  // src/utils/table/useTableSelect.ts
8584
- import React90 from "react";
8762
+ import React92 from "react";
8585
8763
  var useTableSelect = (data, { key }) => {
8586
- const [selected, setSelected] = React90.useState([]);
8764
+ const [selected, setSelected] = React92.useState([]);
8587
8765
  const allSelected = selected.length === data.length;
8588
8766
  const isSelected = (dot) => selected.includes(dot[key]);
8589
8767
  const selectAll = () => setSelected(data.map((dot) => dot[key]));
@@ -8771,7 +8949,7 @@ export {
8771
8949
  Box,
8772
8950
  Breadcrumbs,
8773
8951
  Button,
8774
- Card,
8952
+ Card2 as Card,
8775
8953
  Carousel,
8776
8954
  CharCounter,
8777
8955
  Checkbox2 as Checkbox,