@aivenio/aquarium 1.13.0 → 1.15.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 (41) hide show
  1. package/dist/_variables.scss +1 -1
  2. package/dist/_variables_timescale.scss +1 -1
  3. package/dist/atoms.cjs +190 -106
  4. package/dist/atoms.mjs +189 -106
  5. package/dist/src/atoms/DataList/DataList.d.ts +3 -1
  6. package/dist/src/atoms/DataList/DataList.js +5 -5
  7. package/dist/src/atoms/Navigation/Navigation.d.ts +20 -0
  8. package/dist/src/atoms/Navigation/Navigation.js +49 -0
  9. package/dist/src/atoms/PageHeader/PageHeader.d.ts +13 -0
  10. package/dist/src/atoms/PageHeader/PageHeader.js +43 -0
  11. package/dist/src/atoms/Table/Table.d.ts +4 -3
  12. package/dist/src/atoms/Table/Table.js +17 -7
  13. package/dist/src/atoms/index.d.ts +1 -0
  14. package/dist/src/atoms/index.js +2 -1
  15. package/dist/src/molecules/Button/Button.d.ts +1 -1
  16. package/dist/src/molecules/Button/Button.js +4 -4
  17. package/dist/src/molecules/DataList/DataList.d.ts +3 -3
  18. package/dist/src/molecules/DataList/DataList.js +19 -6
  19. package/dist/src/molecules/DataTable/DataTable.d.ts +3 -3
  20. package/dist/src/molecules/DataTable/DataTable.js +18 -6
  21. package/dist/src/molecules/DropdownMenu/DropdownMenu.d.ts +11 -5
  22. package/dist/src/molecules/DropdownMenu/DropdownMenu.js +2 -1
  23. package/dist/src/molecules/Modal/Modal.d.ts +5 -0
  24. package/dist/src/molecules/Modal/Modal.js +4 -3
  25. package/dist/src/molecules/Navigation/Navigation.d.ts +19 -0
  26. package/dist/src/molecules/Navigation/Navigation.js +27 -0
  27. package/dist/src/molecules/PageHeader/PageHeader.d.ts +2 -0
  28. package/dist/src/molecules/PageHeader/PageHeader.js +10 -9
  29. package/dist/src/molecules/Stepper/Stepper.js +2 -1
  30. package/dist/src/molecules/index.d.ts +1 -0
  31. package/dist/src/molecules/index.js +2 -1
  32. package/dist/src/utils/table/types.d.ts +19 -1
  33. package/dist/src/utils/table/types.js +2 -1
  34. package/dist/styles.css +29 -16
  35. package/dist/styles_timescaledb.css +29 -16
  36. package/dist/system.cjs +1661 -1453
  37. package/dist/system.mjs +1219 -1012
  38. package/dist/tokens.json +4 -4
  39. package/dist/tsconfig.module.tsbuildinfo +1 -1
  40. package/dist/types/tailwindGenerated.d.ts +1 -1
  41. package/package.json +2 -2
package/dist/system.mjs CHANGED
@@ -219,7 +219,7 @@ var require_tokens = __commonJS({
219
219
  style: {
220
220
  fontFamily: "Inter",
221
221
  fontSize: "16px",
222
- fontWeight: 600,
222
+ fontWeight: 500,
223
223
  fontStyle: "normal",
224
224
  lineHeight: 1.5,
225
225
  textTransform: "none"
@@ -245,7 +245,7 @@ var require_tokens = __commonJS({
245
245
  style: {
246
246
  fontFamily: "Inter",
247
247
  fontSize: "14px",
248
- fontWeight: 600,
248
+ fontWeight: 500,
249
249
  fontStyle: "normal",
250
250
  lineHeight: 1.42,
251
251
  textTransform: "none"
@@ -779,7 +779,7 @@ var require_tokens = __commonJS({
779
779
  style: {
780
780
  fontFamily: "Inter",
781
781
  fontSize: "16px",
782
- fontWeight: 600,
782
+ fontWeight: 500,
783
783
  fontStyle: "normal",
784
784
  lineHeight: 1.5,
785
785
  textTransform: "none"
@@ -805,7 +805,7 @@ var require_tokens = __commonJS({
805
805
  style: {
806
806
  fontFamily: "Inter",
807
807
  fontSize: "14px",
808
- fontWeight: 600,
808
+ fontWeight: 500,
809
809
  fontStyle: "normal",
810
810
  lineHeight: 1.42,
811
811
  textTransform: "none"
@@ -1456,6 +1456,22 @@ var require_questionMark = __commonJS({
1456
1456
  }
1457
1457
  });
1458
1458
 
1459
+ // src/icons/more.js
1460
+ var require_more = __commonJS({
1461
+ "src/icons/more.js"(exports) {
1462
+ "use strict";
1463
+ var data = {
1464
+ "body": '<path fill="currentColor" d="M3.5 13a2.5 2.5 0 100-5 2.5 2.5 0 000 5Zm14 0a2.5 2.5 0 100-5 2.5 2.5 0 000 5Zm-7 0a2.5 2.5 0 100-5 2.5 2.5 0 000 5Z"/>',
1465
+ "left": 0,
1466
+ "top": 0,
1467
+ "width": 20,
1468
+ "height": 20
1469
+ };
1470
+ exports.__esModule = true;
1471
+ exports.default = data;
1472
+ }
1473
+ });
1474
+
1459
1475
  // src/icons/smallCross.js
1460
1476
  var require_smallCross = __commonJS({
1461
1477
  "src/icons/smallCross.js"(exports) {
@@ -1570,7 +1586,7 @@ __export(molecules_exports, {
1570
1586
  Divider: () => Divider2,
1571
1587
  Dropdown: () => Dropdown,
1572
1588
  DropdownButton: () => DropdownButton,
1573
- DropdownMenu: () => DropdownMenu3,
1589
+ DropdownMenu: () => DropdownMenu2,
1574
1590
  Element: () => Element,
1575
1591
  EmptyState: () => EmptyState,
1576
1592
  EmptyStateLayout: () => EmptyStateLayout,
@@ -1588,7 +1604,7 @@ __export(molecules_exports, {
1588
1604
  InputBase: () => InputBase,
1589
1605
  LineClamp: () => LineClamp2,
1590
1606
  Link: () => Link2,
1591
- List: () => List,
1607
+ List: () => List2,
1592
1608
  ListItem: () => ListItem,
1593
1609
  Modal: () => Modal2,
1594
1610
  ModalTab: () => ModalTab,
@@ -1600,9 +1616,10 @@ __export(molecules_exports, {
1600
1616
  MultiSelectBase: () => MultiSelectBase,
1601
1617
  NativeSelect: () => NativeSelect,
1602
1618
  NativeSelectBase: () => NativeSelectBase,
1619
+ Navigation: () => Navigation2,
1603
1620
  OneLineBanner: () => OneLineBanner,
1604
1621
  Option: () => Option,
1605
- PageHeader: () => PageHeader,
1622
+ PageHeader: () => PageHeader2,
1606
1623
  Pagination: () => Pagination,
1607
1624
  Popover: () => Popover2,
1608
1625
  PopoverDialog: () => PopoverDialog2,
@@ -1616,7 +1633,7 @@ __export(molecules_exports, {
1616
1633
  SecondaryButton: () => SecondaryButton,
1617
1634
  SecondaryDropdownButton: () => SecondaryDropdownButton,
1618
1635
  SecondaryGhostButton: () => SecondaryGhostButton,
1619
- Section: () => Section3,
1636
+ Section: () => Section4,
1620
1637
  SegmentedControl: () => SegmentedControl,
1621
1638
  SegmentedControlGroup: () => SegmentedControlGroup,
1622
1639
  Select: () => Select2,
@@ -3076,17 +3093,20 @@ var asButton = (Component, isDropdownButton) => {
3076
3093
  className: classNames(
3077
3094
  UNSAFE_className,
3078
3095
  !isIconOnlyButton && COLOR_CLASSNAMES[kind],
3079
- tw("inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative", {
3080
- "text-grey-70 p-2 active:text-grey-70 active:bg-transparent hover:text-grey-90 hover:bg-grey-0 focus-visible:text-grey-90 focus-visible:bg-grey-0 disabled:text-grey-20 disabled:bg-transparent": isIconOnlyButton,
3081
- "typography-default-strong": !dense && !isIconOnlyButton && kind !== "text",
3082
- "typography-small-strong": dense && !isIconOnlyButton,
3083
- "py-3 px-4": !dense && isButton,
3084
- "py-2 px-3": dense && isButton,
3085
- "py-3": !dense && isGhost,
3086
- "py-2": dense && isGhost,
3087
- "block w-full": fullWidth && !isIconOnlyButton,
3088
- "cursor-not-allowed": !!disabled || !!loading2
3089
- })
3096
+ tw(
3097
+ "inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative text-center",
3098
+ {
3099
+ "text-grey-70 p-2 active:text-grey-70 active:bg-transparent hover:text-grey-90 hover:bg-grey-0 focus-visible:text-grey-90 focus-visible:bg-grey-0 disabled:text-grey-20 disabled:bg-transparent": isIconOnlyButton,
3100
+ "typography-default-strong": !dense && !isIconOnlyButton && kind !== "text",
3101
+ "typography-small-strong": dense && !isIconOnlyButton && kind !== "text",
3102
+ "py-3 px-4": !dense && isButton,
3103
+ "py-2 px-3": dense && isButton,
3104
+ "py-3": !dense && isGhost,
3105
+ "py-2": dense && isGhost,
3106
+ "block w-full": fullWidth && !isIconOnlyButton,
3107
+ "cursor-not-allowed": !!disabled || !!loading2
3108
+ }
3109
+ )
3090
3110
  ),
3091
3111
  "aria-label": isIconOnlyButton ? ariaLabel != null ? ariaLabel : tooltip : ariaLabel,
3092
3112
  disabled: disabled || loading2
@@ -5212,134 +5232,599 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React42.crea
5212
5232
  }, children);
5213
5233
 
5214
5234
  // src/molecules/DataList/DataList.tsx
5215
- import React48 from "react";
5235
+ import React52 from "react";
5236
+ import compact from "lodash/compact";
5237
+ import isFunction from "lodash/isFunction";
5216
5238
 
5217
- // src/molecules/Template/Template.tsx
5239
+ // src/molecules/DropdownMenu/DropdownMenu.tsx
5240
+ import React46 from "react";
5241
+ import { useFilter } from "@react-aria/i18n";
5242
+ import { PressResponder, usePress } from "@react-aria/interactions";
5243
+ import { useMenu, useMenuItem, useMenuSection, useMenuTrigger } from "@react-aria/menu";
5244
+ import { useSeparator } from "@react-aria/separator";
5245
+ import { mergeProps as mergeProps2 } from "@react-aria/utils";
5246
+ import { Item as Item3, Section } from "@react-stately/collections";
5247
+ import { useMenuTriggerState } from "@react-stately/menu";
5248
+ import { useTreeState } from "@react-stately/tree";
5249
+
5250
+ // src/molecules/Input/Input.tsx
5251
+ import React44, { forwardRef, useImperativeHandle, useRef as useRef6, useState as useState6 } from "react";
5252
+ import omit7 from "lodash/omit";
5253
+ import toString from "lodash/toString";
5254
+ import uniqueId3 from "lodash/uniqueId";
5255
+
5256
+ // src/utils/form/InputAdornment/InputAdornment.tsx
5218
5257
  import React43 from "react";
5219
- var Template = ({
5220
- children,
5221
- columns,
5222
- alignSelf,
5223
- alignContent,
5224
- alignItems,
5225
- justifySelf,
5226
- gap,
5227
- columnGap,
5228
- rowGap,
5229
- fullHeight
5230
- }) => {
5231
- const gridTemplateColumns = typeof columns === "number" ? "1fr ".repeat(columns) : columns.map((column) => typeof column === "number" ? `${column}px` : column === "auto" ? column : `${column}fr`).join(" ");
5232
- const styles = useStyle({
5233
- height: fullHeight ? "100%" : void 0,
5234
- display: "grid",
5235
- gridTemplateColumns,
5236
- alignSelf,
5237
- alignContent,
5238
- alignItems,
5239
- justifySelf,
5240
- gap,
5241
- rowGap,
5242
- columnGap
5243
- });
5244
- return /* @__PURE__ */ React43.createElement("div", {
5245
- style: __spreadValues({}, styles)
5246
- }, children);
5258
+ var import_cross4 = __toESM(require_cross());
5259
+ var import_error2 = __toESM(require_error());
5260
+ var import_search2 = __toESM(require_search());
5261
+ var import_tick3 = __toESM(require_tick());
5262
+ var InputAdornment = ({ placement = "right", className, dense, children }) => {
5263
+ return /* @__PURE__ */ React43.createElement("span", {
5264
+ className: classNames(className, "absolute inset-y-0 grow-0 text-grey-40 flex items-center mx-3", {
5265
+ "right-0": placement === "right",
5266
+ "left-0": placement === "left",
5267
+ "typography-small": dense,
5268
+ "typography-default-strong": !dense
5269
+ })
5270
+ }, /* @__PURE__ */ React43.createElement(Flexbox, {
5271
+ gap: "3",
5272
+ wrap: "wrap"
5273
+ }, children));
5247
5274
  };
5275
+ var SearchIcon = ({ onClick }) => /* @__PURE__ */ React43.createElement(Icon, {
5276
+ icon: import_search2.default,
5277
+ color: "grey-30",
5278
+ "data-testid": "icon-search",
5279
+ onClick
5280
+ });
5281
+ var ResetIcon = ({ onClick }) => /* @__PURE__ */ React43.createElement(Icon, {
5282
+ className: "hover:cursor-pointer",
5283
+ icon: import_cross4.default,
5284
+ color: "grey-30",
5285
+ "data-testid": "icon-reset",
5286
+ onClick
5287
+ });
5248
5288
 
5249
- // src/atoms/DataList/DataList.tsx
5250
- import React46 from "react";
5289
+ // src/molecules/Input/Input.tsx
5290
+ var createInput = (displayName, opts = {}) => {
5291
+ const InputComponent = forwardRef(
5292
+ (_a, ref) => {
5293
+ var _b = _a, {
5294
+ type = "text",
5295
+ maxLength,
5296
+ valid = true,
5297
+ required = false,
5298
+ endAdornment,
5299
+ disabled = false,
5300
+ readOnly = false
5301
+ } = _b, props = __objRest(_b, [
5302
+ "type",
5303
+ "maxLength",
5304
+ "valid",
5305
+ "required",
5306
+ "endAdornment",
5307
+ "disabled",
5308
+ "readOnly"
5309
+ ]);
5310
+ var _a2;
5311
+ const inputRef = React44.useRef(null);
5312
+ useImperativeHandle(ref, () => inputRef.current);
5313
+ const handleReset = () => {
5314
+ var _a3;
5315
+ const el = inputRef.current;
5316
+ if (el) {
5317
+ const lastValue = el.value;
5318
+ el.value = "";
5319
+ (_a3 = el._valueTracker) == null ? void 0 : _a3.setValue(lastValue);
5320
+ el.dispatchEvent(new Event("change", { bubbles: true }));
5321
+ el.focus();
5322
+ }
5323
+ };
5324
+ return /* @__PURE__ */ React44.createElement("span", {
5325
+ className: tw("relative block")
5326
+ }, opts.adornment && /* @__PURE__ */ React44.createElement(InputAdornment, {
5327
+ placement: "left"
5328
+ }, opts.adornment), /* @__PURE__ */ React44.createElement("input", __spreadProps(__spreadValues({
5329
+ ref: inputRef,
5330
+ type
5331
+ }, props), {
5332
+ disabled,
5333
+ maxLength,
5334
+ required,
5335
+ readOnly,
5336
+ className: classNames(
5337
+ {
5338
+ "pl-7": opts.adornment
5339
+ },
5340
+ getCommonInputStyles({ readOnly, valid }),
5341
+ props.className
5342
+ )
5343
+ })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React44.createElement(InputAdornment, null, /* @__PURE__ */ React44.createElement(ResetIcon, {
5344
+ onClick: handleReset
5345
+ })), !opts.canReset && endAdornment && /* @__PURE__ */ React44.createElement(InputAdornment, null, endAdornment));
5346
+ }
5347
+ );
5348
+ InputComponent.displayName = displayName;
5349
+ InputComponent.Skeleton = () => /* @__PURE__ */ React44.createElement(Skeleton, {
5350
+ height: 38
5351
+ });
5352
+ return InputComponent;
5353
+ };
5354
+ var InputBase = createInput("InputBase");
5355
+ var SearchInput = createInput("SearchInput", { adornment: /* @__PURE__ */ React44.createElement(SearchIcon, null), canReset: true });
5356
+ var Input2 = React44.forwardRef((_a, ref) => {
5357
+ var _b = _a, { readOnly = false } = _b, props = __objRest(_b, ["readOnly"]);
5358
+ var _a2, _b2, _c;
5359
+ const [value, setValue] = useState6((_b2 = (_a2 = props.value) != null ? _a2 : props.defaultValue) != null ? _b2 : "");
5360
+ const id = useRef6((_c = props.id) != null ? _c : `input-${uniqueId3()}`);
5361
+ const errorMessageId = uniqueId3();
5362
+ const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
5363
+ const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
5364
+ const baseProps = omit7(props, Object.keys(labelControlProps));
5365
+ return /* @__PURE__ */ React44.createElement(LabelControl, __spreadValues({
5366
+ id: `${id.current}-label`,
5367
+ htmlFor: id.current,
5368
+ messageId: errorMessageId,
5369
+ length: value !== void 0 ? toString(value).length : void 0
5370
+ }, labelControlProps), /* @__PURE__ */ React44.createElement(InputBase, __spreadProps(__spreadValues(__spreadValues({
5371
+ ref
5372
+ }, baseProps), errorProps), {
5373
+ id: id.current,
5374
+ "data-testid": dataTestId,
5375
+ onChange: (e) => {
5376
+ var _a3;
5377
+ setValue(e.currentTarget.value);
5378
+ (_a3 = props.onChange) == null ? void 0 : _a3.call(props, e);
5379
+ },
5380
+ disabled: props.disabled,
5381
+ maxLength: props.maxLength,
5382
+ required: props.required,
5383
+ valid: props.valid,
5384
+ readOnly
5385
+ })));
5386
+ });
5387
+ Input2.displayName = "Input";
5388
+ Input2.Skeleton = () => /* @__PURE__ */ React44.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React44.createElement(InputBase.Skeleton, null));
5389
+ Input2.Skeleton.displayName = "Input.Skeleton";
5251
5390
 
5252
- // src/atoms/Table/Table.tsx
5391
+ // src/atoms/DropdownMenu/DropdownMenu.tsx
5253
5392
  import React45 from "react";
5254
-
5255
- // src/atoms/RadioButton/RadioButton.tsx
5256
- import React44 from "react";
5257
- var RadioButton = React44.forwardRef(
5393
+ var import_tick4 = __toESM(require_tick());
5394
+ var DropdownMenu = React45.forwardRef(
5258
5395
  (_a, ref) => {
5259
- var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
5260
- return /* @__PURE__ */ React44.createElement("input", __spreadProps(__spreadValues({
5261
- id,
5396
+ var _b = _a, { maxHeight = "450px", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["maxHeight", "minWidth", "maxWidth", "className", "children"]);
5397
+ return /* @__PURE__ */ React45.createElement("div", __spreadValues({
5262
5398
  ref,
5263
- type: "radio",
5264
- name
5265
- }, props), {
5266
- className: classNames(
5267
- tw(
5268
- "inline-flex justify-center items-center self-center appearance-none",
5269
- "w-5 h-5 p-[3px] rounded-full cursor-pointer border border-grey-20",
5270
- "outline-none focus:border-info-70 checked:bg-navyBlue-100 checked:shadow-whiteInset",
5271
- {
5272
- "hover:border-grey-50 checked:border-navyBlue-100": !disabled,
5273
- "cursor-not-allowed border-grey-5 bg-grey-0 checked:bg-opacity-40": disabled
5274
- }
5275
- )
5276
- ),
5277
- readOnly,
5278
- disabled
5399
+ style: { maxHeight, minWidth, maxWidth },
5400
+ className: classNames(className, "bg-white w-full flex flex-col overflow-x-hidden typography-small text-grey-70")
5401
+ }, props), children);
5402
+ }
5403
+ );
5404
+ var ContentContainer = ({ children }) => /* @__PURE__ */ React45.createElement("div", {
5405
+ className: tw("p-3 overflow-y-auto overflow-x-hidden")
5406
+ }, children);
5407
+ DropdownMenu.ContentContainer = ContentContainer;
5408
+ var List = React45.forwardRef(
5409
+ (_a, ref) => {
5410
+ var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
5411
+ return /* @__PURE__ */ React45.createElement("ul", __spreadValues({
5412
+ ref,
5413
+ className: classNames(className, "outline-none ring-0")
5414
+ }, props), children);
5415
+ }
5416
+ );
5417
+ DropdownMenu.List = List;
5418
+ var Group2 = React45.forwardRef(
5419
+ (_a, ref) => {
5420
+ var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
5421
+ return /* @__PURE__ */ React45.createElement("li", __spreadValues({
5422
+ ref
5423
+ }, props), title && /* @__PURE__ */ React45.createElement("div", __spreadValues({
5424
+ className: classNames(className, "p-3 text-grey-40 uppercase cursor-default typography-caption", {
5425
+ "text-grey-20": props.disabled
5426
+ })
5427
+ }, titleProps), title), children);
5428
+ }
5429
+ );
5430
+ DropdownMenu.Group = Group2;
5431
+ var Item2 = React45.forwardRef(
5432
+ (_a, ref) => {
5433
+ var _b = _a, { kind, highlighted, selected, className, icon, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "children"]);
5434
+ return /* @__PURE__ */ React45.createElement("li", __spreadValues({
5435
+ ref,
5436
+ className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
5437
+ "cursor-pointer hover:bg-grey-0": !props.disabled,
5438
+ "bg-grey-0": highlighted,
5439
+ "text-primary-80": kind === "action",
5440
+ "text-grey-20 cursor-not-allowed": props.disabled
5441
+ })
5442
+ }, props), icon && /* @__PURE__ */ React45.createElement(InlineIcon, {
5443
+ icon
5444
+ }), /* @__PURE__ */ React45.createElement("span", {
5445
+ className: tw("grow")
5446
+ }, children), selected && /* @__PURE__ */ React45.createElement(InlineIcon, {
5447
+ icon: import_tick4.default
5279
5448
  }));
5280
5449
  }
5281
5450
  );
5451
+ DropdownMenu.Item = Item2;
5452
+ var Description = ({ disabled, children }) => /* @__PURE__ */ React45.createElement(Typography2.Caption, {
5453
+ color: disabled ? "grey-20" : "grey-40"
5454
+ }, children);
5455
+ DropdownMenu.Description = Description;
5456
+ var Separator = (_a) => {
5457
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5458
+ return /* @__PURE__ */ React45.createElement("li", __spreadProps(__spreadValues({}, props), {
5459
+ className: classNames(className, tw("m-3 block bg-grey-5 h-[1px]"))
5460
+ }));
5461
+ };
5462
+ DropdownMenu.Separator = Separator;
5463
+ var EmptyStateContainer2 = (_a) => {
5464
+ var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
5465
+ return /* @__PURE__ */ React45.createElement("div", __spreadValues({
5466
+ className: classNames(tw("border border-dashed border-grey-10 p-3"), className)
5467
+ }, props), children);
5468
+ };
5469
+ DropdownMenu.EmptyStateContainer = EmptyStateContainer2;
5282
5470
 
5283
- // src/atoms/Table/Table.tsx
5284
- var import_chevronDown3 = __toESM(require_chevronDown());
5285
- var import_chevronUp2 = __toESM(require_chevronUp());
5286
- var HeadContext = React45.createContext(null);
5471
+ // src/molecules/DropdownMenu/utils.ts
5472
+ import { ListCollection } from "@react-stately/list";
5473
+ var filterCollection = (collection, inputValue, filter) => {
5474
+ return new ListCollection(filterNodes(collection, inputValue, filter));
5475
+ };
5476
+ var filterNodes = (nodes, inputValue, filter) => {
5477
+ const filteredNode = [];
5478
+ for (const node of nodes) {
5479
+ if (node.type === "section" && node.hasChildNodes) {
5480
+ const filtered = filterNodes(node.childNodes, inputValue, filter);
5481
+ if ([...filtered].length > 0) {
5482
+ filteredNode.push(__spreadProps(__spreadValues({}, node), { childNodes: filtered }));
5483
+ }
5484
+ } else if (node.type !== "section" && filter(node.textValue, inputValue)) {
5485
+ filteredNode.push(__spreadValues({}, node));
5486
+ }
5487
+ }
5488
+ return filteredNode;
5489
+ };
5490
+
5491
+ // src/molecules/DropdownMenu/DropdownMenu.tsx
5492
+ var DropdownMenu2 = (_a) => {
5493
+ var _b = _a, {
5494
+ onAction,
5495
+ selectionMode,
5496
+ selection,
5497
+ onSelectionChange,
5498
+ placement = "bottom-left",
5499
+ minWidth,
5500
+ maxWidth,
5501
+ searchable = false,
5502
+ emptyState,
5503
+ header,
5504
+ footer,
5505
+ children
5506
+ } = _b, props = __objRest(_b, [
5507
+ "onAction",
5508
+ "selectionMode",
5509
+ "selection",
5510
+ "onSelectionChange",
5511
+ "placement",
5512
+ "minWidth",
5513
+ "maxWidth",
5514
+ "searchable",
5515
+ "emptyState",
5516
+ "header",
5517
+ "footer",
5518
+ "children"
5519
+ ]);
5520
+ const triggerRef = React46.useRef(null);
5521
+ const [trigger, items] = extractTriggerAndItems(children);
5522
+ const state = useMenuTriggerState(props);
5523
+ const { menuTriggerProps, menuProps } = useMenuTrigger({}, state, triggerRef);
5524
+ return /* @__PURE__ */ React46.createElement("div", null, /* @__PURE__ */ React46.createElement(PressResponder, __spreadValues({
5525
+ ref: triggerRef,
5526
+ onPress: () => state.toggle()
5527
+ }, menuTriggerProps), /* @__PURE__ */ React46.createElement(TriggerWrapper, null, trigger.props.children)), state.isOpen && /* @__PURE__ */ React46.createElement(PopoverOverlay, {
5528
+ triggerRef,
5529
+ state,
5530
+ placement,
5531
+ focusable: false
5532
+ }, /* @__PURE__ */ React46.createElement(MenuWrapper, __spreadValues({
5533
+ onAction,
5534
+ selectionMode,
5535
+ selection,
5536
+ onSelectionChange,
5537
+ searchable,
5538
+ emptyState,
5539
+ minWidth,
5540
+ maxWidth,
5541
+ header,
5542
+ footer
5543
+ }, menuProps), items.props.children)));
5544
+ };
5545
+ DropdownMenu2.displayName = "DropdownMenu";
5546
+ var MenuTrigger = () => null;
5547
+ var MenuItems = () => null;
5548
+ DropdownMenu2.Trigger = MenuTrigger;
5549
+ DropdownMenu2.Trigger.displayName = "DropdownMenu.Trigger";
5550
+ DropdownMenu2.Items = MenuItems;
5551
+ DropdownMenu2.Items.displayName = "DropdownMenu.Items";
5552
+ DropdownMenu2.Item = Item3;
5553
+ DropdownMenu2.Item.displayName = "DropdownMenu.Item";
5554
+ DropdownMenu2.Section = Section;
5555
+ DropdownMenu2.Section.displayName = "DropdownMenu.Section";
5556
+ var TriggerWrapper = (_a) => {
5557
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
5558
+ const ref = React46.useRef(null);
5559
+ const { pressProps } = usePress(__spreadProps(__spreadValues({}, props), { ref }));
5560
+ const trigger = React46.Children.only(children);
5561
+ if (!trigger || !React46.isValidElement(trigger)) {
5562
+ throw new Error("<DropdownMenu.Trigger> must have valid child");
5563
+ }
5564
+ return React46.cloneElement(trigger, __spreadValues({ ref }, mergeProps2(pressProps, props)));
5565
+ };
5566
+ var isSectionNode = (item) => item.type === "section";
5567
+ var isItemNode = (item) => item.type === "item";
5568
+ var MenuWrapper = (_a) => {
5569
+ var _b = _a, {
5570
+ selection: selectedKeys,
5571
+ minWidth,
5572
+ maxWidth,
5573
+ searchable,
5574
+ emptyState,
5575
+ header,
5576
+ footer
5577
+ } = _b, props = __objRest(_b, [
5578
+ "selection",
5579
+ "minWidth",
5580
+ "maxWidth",
5581
+ "searchable",
5582
+ "emptyState",
5583
+ "header",
5584
+ "footer"
5585
+ ]);
5586
+ const ref = React46.useRef(null);
5587
+ const disabledKeys = getDisabledItemKeys(props.children);
5588
+ const state = useTreeState(__spreadValues({
5589
+ disabledKeys,
5590
+ selectedKeys
5591
+ }, props));
5592
+ const { menuProps } = useMenu(props, state, ref);
5593
+ const { contains } = useFilter({ sensitivity: "base" });
5594
+ const [search, setSearch] = React46.useState("");
5595
+ const filteredCollection = React46.useMemo(
5596
+ () => searchable ? filterCollection(state.collection, search, contains) : state.collection,
5597
+ [state.collection, search, contains]
5598
+ );
5599
+ return /* @__PURE__ */ React46.createElement(DropdownMenu, {
5600
+ minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
5601
+ maxWidth: maxWidth !== void 0 ? `${maxWidth}px` : void 0
5602
+ }, header, /* @__PURE__ */ React46.createElement(DropdownMenu.ContentContainer, null, searchable && /* @__PURE__ */ React46.createElement(SearchInput, {
5603
+ "aria-label": "search",
5604
+ value: search,
5605
+ onChange: (e) => setSearch(e.target.value),
5606
+ className: tw("mb-5")
5607
+ }), filteredCollection.size === 0 && emptyState && /* @__PURE__ */ React46.createElement(DropdownMenu.EmptyStateContainer, null, emptyState), /* @__PURE__ */ React46.createElement(DropdownMenu.List, __spreadValues({
5608
+ ref
5609
+ }, menuProps), Array.from(filteredCollection).map((item) => {
5610
+ if (isSectionNode(item)) {
5611
+ return /* @__PURE__ */ React46.createElement(SectionWrapper, {
5612
+ key: item.key,
5613
+ section: item,
5614
+ state
5615
+ });
5616
+ } else if (isItemNode(item)) {
5617
+ return /* @__PURE__ */ React46.createElement(ItemWrapper, {
5618
+ key: item.key,
5619
+ item,
5620
+ state
5621
+ });
5622
+ }
5623
+ }))), footer);
5624
+ };
5625
+ var ItemWrapper = ({ item, state }) => {
5626
+ const ref = React46.useRef(null);
5627
+ const { menuItemProps, descriptionProps, isSelected, isFocused, isDisabled } = useMenuItem(
5628
+ { key: item.key, closeOnSelect: item.props.closeOnSelect },
5629
+ state,
5630
+ ref
5631
+ );
5632
+ const { icon, description, kind = "default" } = item.props;
5633
+ return /* @__PURE__ */ React46.createElement(DropdownMenu.Item, __spreadProps(__spreadValues({
5634
+ ref
5635
+ }, menuItemProps), {
5636
+ kind,
5637
+ selected: isSelected,
5638
+ highlighted: isFocused,
5639
+ disabled: isDisabled,
5640
+ icon
5641
+ }), item.rendered, description && /* @__PURE__ */ React46.createElement(DropdownMenu.Description, __spreadValues({
5642
+ disabled: isDisabled
5643
+ }, descriptionProps), description));
5644
+ };
5645
+ var SectionWrapper = ({ section, state }) => {
5646
+ const { itemProps, headingProps, groupProps } = useMenuSection({
5647
+ "heading": section.rendered,
5648
+ "aria-label": section["aria-label"]
5649
+ });
5650
+ const { separatorProps } = useSeparator({
5651
+ elementType: "li"
5652
+ });
5653
+ return /* @__PURE__ */ React46.createElement(React46.Fragment, null, section.key !== state.collection.getFirstKey() && /* @__PURE__ */ React46.createElement(DropdownMenu.Separator, __spreadValues({}, separatorProps)), /* @__PURE__ */ React46.createElement(DropdownMenu.Group, __spreadValues({
5654
+ title: section.rendered,
5655
+ titleProps: headingProps
5656
+ }, itemProps), /* @__PURE__ */ React46.createElement("ul", __spreadValues({}, groupProps), Array.from(section.childNodes).map((node) => /* @__PURE__ */ React46.createElement(ItemWrapper, {
5657
+ key: node.key,
5658
+ item: node,
5659
+ state
5660
+ })))));
5661
+ };
5662
+ var extractTriggerAndItems = (children) => {
5663
+ const [trigger, items] = React46.Children.toArray(children);
5664
+ if (!isComponentType(trigger, MenuTrigger) || !isComponentType(items, MenuItems)) {
5665
+ throw new Error("<DropdownMenu> must have <DropdownMenu.Trigger> and <DropdownMenu.Items> defined");
5666
+ }
5667
+ return [trigger, items];
5668
+ };
5669
+ var getDisabledItemKeys = (children) => {
5670
+ const keys = React46.Children.map(children, (child) => {
5671
+ var _a, _b;
5672
+ if (!child || typeof child === "function") {
5673
+ return null;
5674
+ }
5675
+ if (isComponentType(child, Item3) && child.props.disabled) {
5676
+ return (_b = (_a = child.key) == null ? void 0 : _a.toString()) != null ? _b : null;
5677
+ }
5678
+ if (isComponentType(child, Section)) {
5679
+ return getDisabledItemKeys(child.props.children);
5680
+ }
5681
+ return null;
5682
+ });
5683
+ return keys.flat().filter((key) => key !== null);
5684
+ };
5685
+
5686
+ // src/molecules/Template/Template.tsx
5687
+ import React47 from "react";
5688
+ var Template = ({
5689
+ children,
5690
+ columns,
5691
+ alignSelf,
5692
+ alignContent,
5693
+ alignItems,
5694
+ justifySelf,
5695
+ gap,
5696
+ columnGap,
5697
+ rowGap,
5698
+ fullHeight
5699
+ }) => {
5700
+ const gridTemplateColumns = typeof columns === "number" ? "1fr ".repeat(columns) : columns.map((column) => typeof column === "number" ? `${column}px` : column === "auto" ? column : `${column}fr`).join(" ");
5701
+ const styles = useStyle({
5702
+ height: fullHeight ? "100%" : void 0,
5703
+ display: "grid",
5704
+ gridTemplateColumns,
5705
+ alignSelf,
5706
+ alignContent,
5707
+ alignItems,
5708
+ justifySelf,
5709
+ gap,
5710
+ rowGap,
5711
+ columnGap
5712
+ });
5713
+ return /* @__PURE__ */ React47.createElement("div", {
5714
+ style: __spreadValues({}, styles)
5715
+ }, children);
5716
+ };
5717
+
5718
+ // src/atoms/DataList/DataList.tsx
5719
+ import React50 from "react";
5720
+
5721
+ // src/atoms/Table/Table.tsx
5722
+ import React49 from "react";
5723
+
5724
+ // src/atoms/RadioButton/RadioButton.tsx
5725
+ import React48 from "react";
5726
+ var RadioButton = React48.forwardRef(
5727
+ (_a, ref) => {
5728
+ var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
5729
+ return /* @__PURE__ */ React48.createElement("input", __spreadProps(__spreadValues({
5730
+ id,
5731
+ ref,
5732
+ type: "radio",
5733
+ name
5734
+ }, props), {
5735
+ className: classNames(
5736
+ tw(
5737
+ "inline-flex justify-center items-center self-center appearance-none",
5738
+ "w-5 h-5 p-[3px] rounded-full cursor-pointer border border-grey-20",
5739
+ "outline-none focus:border-info-70 checked:bg-navyBlue-100 checked:shadow-whiteInset",
5740
+ {
5741
+ "hover:border-grey-50 checked:border-navyBlue-100": !disabled,
5742
+ "cursor-not-allowed border-grey-5 bg-grey-0 checked:bg-opacity-40": disabled
5743
+ }
5744
+ )
5745
+ ),
5746
+ readOnly,
5747
+ disabled
5748
+ }));
5749
+ }
5750
+ );
5751
+
5752
+ // src/atoms/Table/Table.tsx
5753
+ var import_chevronDown3 = __toESM(require_chevronDown());
5754
+ var import_chevronUp2 = __toESM(require_chevronUp());
5755
+ var HeadContext = React49.createContext(null);
5287
5756
  var tableClassNames = tw("w-full relative typography-default border-spacing-0");
5288
5757
  var Table = (_a) => {
5289
5758
  var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
5290
- return /* @__PURE__ */ React45.createElement("table", __spreadProps(__spreadValues({}, rest), {
5759
+ return /* @__PURE__ */ React49.createElement("table", __spreadProps(__spreadValues({}, rest), {
5291
5760
  className: classNames(tableClassNames, className),
5292
5761
  "aria-label": ariaLabel
5293
5762
  }), children);
5294
5763
  };
5295
5764
  var TableHead = (_a) => {
5296
5765
  var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
5297
- return /* @__PURE__ */ React45.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React45.createElement("tr", null, /* @__PURE__ */ React45.createElement(HeadContext.Provider, {
5766
+ return /* @__PURE__ */ React49.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React49.createElement("tr", null, /* @__PURE__ */ React49.createElement(HeadContext.Provider, {
5298
5767
  value: { children, sticky }
5299
5768
  }, children)));
5300
5769
  };
5301
5770
  var TableBody = (_a) => {
5302
5771
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
5303
- return /* @__PURE__ */ React45.createElement("tbody", __spreadValues({}, rest), children);
5772
+ return /* @__PURE__ */ React49.createElement("tbody", __spreadValues({}, rest), children);
5304
5773
  };
5305
- var rowClassNames = tw("children:border-grey-10 children:last:border-b-0 hover:bg-grey-0");
5774
+ var rowClassNames = tw("children:border-grey-10 group children:last:border-b-0 hover:bg-grey-0");
5306
5775
  var TableRow = (_a) => {
5307
5776
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5308
- return /* @__PURE__ */ React45.createElement("tr", __spreadProps(__spreadValues({}, rest), {
5777
+ return /* @__PURE__ */ React49.createElement("tr", __spreadProps(__spreadValues({}, rest), {
5309
5778
  className: classNames(rowClassNames, className)
5310
5779
  }), children);
5311
5780
  };
5312
5781
  var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
5313
- var getBodyCellClassNames = (table = true) => tw("text-grey-70 py-3", {
5782
+ var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-grey-70 py-3", {
5314
5783
  "h-[50px]": table,
5315
- "min-h-[50px]": !table
5784
+ "min-h-[50px]": !table,
5785
+ "sticky z-10 bg-white group-hover:bg-grey-0": Boolean(stickyColumn),
5786
+ "left-0": stickyColumn === "left",
5787
+ "right-0": stickyColumn === "right"
5316
5788
  });
5317
5789
  var getAlignClassNames = (align) => tw({ "text-right": align === "right", "text-center": align === "center" });
5318
- var getHeadCellClassNames = (sticky = true) => {
5790
+ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
5319
5791
  const common = tw("py-[14px] text-left bg-white border-grey-40 text-grey-50 font-normal");
5320
- return sticky ? classNames(common, tw("sticky top-0 z-10")) : common;
5792
+ return sticky ? classNames(
5793
+ common,
5794
+ tw("sticky top-0", {
5795
+ "z-10": !stickyColumn,
5796
+ "z-20": Boolean(stickyColumn),
5797
+ "left-0": stickyColumn === "left",
5798
+ "right-0": stickyColumn === "right"
5799
+ })
5800
+ ) : common;
5321
5801
  };
5322
5802
  var TableCell = (_a) => {
5323
- var _b = _a, { children, className, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "align"]);
5324
- const headContext = React45.useContext(HeadContext);
5325
- return headContext ? /* @__PURE__ */ React45.createElement("th", __spreadProps(__spreadValues({}, rest), {
5803
+ var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
5804
+ const headContext = React49.useContext(HeadContext);
5805
+ return headContext ? /* @__PURE__ */ React49.createElement("th", __spreadProps(__spreadValues({}, rest), {
5326
5806
  className: classNames(
5327
5807
  cellClassNames,
5328
- getHeadCellClassNames(headContext.sticky),
5808
+ getHeadCellClassNames(headContext.sticky, stickyColumn),
5809
+ getAlignClassNames(align),
5810
+ className
5811
+ )
5812
+ }), children) : /* @__PURE__ */ React49.createElement("td", __spreadProps(__spreadValues({}, rest), {
5813
+ className: classNames(
5814
+ cellClassNames,
5815
+ getBodyCellClassNames(true, stickyColumn),
5329
5816
  getAlignClassNames(align),
5330
5817
  className
5331
5818
  )
5332
- }), children) : /* @__PURE__ */ React45.createElement("td", __spreadProps(__spreadValues({}, rest), {
5333
- className: classNames(cellClassNames, getBodyCellClassNames(), getAlignClassNames(align), className)
5334
5819
  }), children);
5335
5820
  };
5336
5821
  var TableSelectCell = (_a) => {
5337
5822
  var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
5338
- return /* @__PURE__ */ React45.createElement(Table.Cell, {
5823
+ return /* @__PURE__ */ React49.createElement(Table.Cell, {
5339
5824
  className: tw("leading-[0px]")
5340
- }, props.type === "radio" ? /* @__PURE__ */ React45.createElement(RadioButton, __spreadValues({
5825
+ }, props.type === "radio" ? /* @__PURE__ */ React49.createElement(RadioButton, __spreadValues({
5341
5826
  "aria-label": ariaLabel
5342
- }, props)) : /* @__PURE__ */ React45.createElement(Checkbox, __spreadValues({
5827
+ }, props)) : /* @__PURE__ */ React49.createElement(Checkbox, __spreadValues({
5343
5828
  "aria-label": ariaLabel
5344
5829
  }, props)));
5345
5830
  };
@@ -5349,39 +5834,39 @@ var getSortCellIconClassNames = (active) => {
5349
5834
  };
5350
5835
  var TableSortCell = (_a) => {
5351
5836
  var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
5352
- return /* @__PURE__ */ React45.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
5837
+ return /* @__PURE__ */ React49.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
5353
5838
  "aria-sort": direction
5354
- }), /* @__PURE__ */ React45.createElement("span", {
5839
+ }), /* @__PURE__ */ React49.createElement("span", {
5355
5840
  className: getSortCellButtonClassNames(rest.align),
5356
5841
  role: "button",
5357
5842
  tabIndex: -1,
5358
5843
  onClick
5359
- }, children, /* @__PURE__ */ React45.createElement("div", {
5844
+ }, children, /* @__PURE__ */ React49.createElement("div", {
5360
5845
  "data-sort-icons": true,
5361
5846
  className: tw("flex flex-col", {
5362
5847
  "invisible group-hover:visible": direction === "none"
5363
5848
  })
5364
- }, /* @__PURE__ */ React45.createElement(InlineIcon, {
5849
+ }, /* @__PURE__ */ React49.createElement(InlineIcon, {
5365
5850
  icon: import_chevronUp2.default,
5366
5851
  className: getSortCellIconClassNames(direction === "descending")
5367
- }), /* @__PURE__ */ React45.createElement(InlineIcon, {
5852
+ }), /* @__PURE__ */ React49.createElement(InlineIcon, {
5368
5853
  icon: import_chevronDown3.default,
5369
5854
  className: getSortCellIconClassNames(direction === "ascending")
5370
5855
  }))));
5371
5856
  };
5372
- var Item2 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React45.createElement("div", {
5857
+ var Item4 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React49.createElement("div", {
5373
5858
  className: tw("flex gap-4 items-center")
5374
- }, image && /* @__PURE__ */ React45.createElement("img", {
5859
+ }, image && /* @__PURE__ */ React49.createElement("img", {
5375
5860
  src: image,
5376
5861
  alt: imageAlt,
5377
5862
  style: { width: imageSize, height: imageSize }
5378
- }), /* @__PURE__ */ React45.createElement("div", null, title, caption && /* @__PURE__ */ React45.createElement(Typography2.Caption, null, caption)));
5379
- Table.Head = React45.memo(TableHead);
5380
- Table.Body = React45.memo(TableBody);
5381
- Table.Row = React45.memo(TableRow);
5382
- Table.Cell = React45.memo(TableCell);
5383
- Table.SortCell = React45.memo(TableSortCell);
5384
- Table.SelectCell = React45.memo(TableSelectCell);
5863
+ }), /* @__PURE__ */ React49.createElement("div", null, title, caption && /* @__PURE__ */ React49.createElement(Typography2.Caption, null, caption)));
5864
+ Table.Head = React49.memo(TableHead);
5865
+ Table.Body = React49.memo(TableBody);
5866
+ Table.Row = React49.memo(TableRow);
5867
+ Table.Cell = React49.memo(TableCell);
5868
+ Table.SortCell = React49.memo(TableSortCell);
5869
+ Table.SelectCell = React49.memo(TableSelectCell);
5385
5870
 
5386
5871
  // src/atoms/DataList/DataList.tsx
5387
5872
  var import_chevronDown4 = __toESM(require_chevronDown());
@@ -5393,30 +5878,45 @@ var getAlignClassNames2 = (align) => tw("flex items-center", {
5393
5878
  });
5394
5879
  var DataList = (_a) => {
5395
5880
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
5396
- return /* @__PURE__ */ React46.createElement("div", __spreadValues({}, rest));
5881
+ return /* @__PURE__ */ React50.createElement("div", __spreadValues({}, rest));
5397
5882
  };
5398
5883
  var HeadCell = (_a) => {
5399
5884
  var _b = _a, {
5400
5885
  className,
5401
5886
  sticky,
5402
- align
5887
+ align,
5888
+ stickyColumn
5403
5889
  } = _b, rest = __objRest(_b, [
5404
5890
  "className",
5405
5891
  "sticky",
5406
- "align"
5892
+ "align",
5893
+ "stickyColumn"
5407
5894
  ]);
5408
- return /* @__PURE__ */ React46.createElement("div", __spreadProps(__spreadValues({}, rest), {
5895
+ return /* @__PURE__ */ React50.createElement("div", __spreadProps(__spreadValues({}, rest), {
5409
5896
  role: "cell",
5410
- className: classNames(cellClassNames, getHeadCellClassNames(sticky), getAlignClassNames2(align), className)
5411
- }));
5412
- };
5413
- var Cell = (_a) => {
5414
- var _b = _a, { className, align } = _b, rest = __objRest(_b, ["className", "align"]);
5415
- return /* @__PURE__ */ React46.createElement("div", __spreadProps(__spreadValues({}, rest), {
5897
+ className: classNames(
5898
+ cellClassNames,
5899
+ getHeadCellClassNames(sticky, stickyColumn),
5900
+ getAlignClassNames2(align),
5901
+ className
5902
+ )
5903
+ }));
5904
+ };
5905
+ var Cell = (_a) => {
5906
+ var _b = _a, {
5907
+ className,
5908
+ align,
5909
+ stickyColumn
5910
+ } = _b, rest = __objRest(_b, [
5911
+ "className",
5912
+ "align",
5913
+ "stickyColumn"
5914
+ ]);
5915
+ return /* @__PURE__ */ React50.createElement("div", __spreadProps(__spreadValues({}, rest), {
5416
5916
  role: "cell",
5417
5917
  className: classNames(
5418
5918
  cellClassNames,
5419
- getBodyCellClassNames(false),
5919
+ getBodyCellClassNames(false, stickyColumn),
5420
5920
  getAlignClassNames2(align),
5421
5921
  tw("border-grey-10 group-hover:bg-grey-0 group-last:border-b-0"),
5422
5922
  className
@@ -5425,31 +5925,31 @@ var Cell = (_a) => {
5425
5925
  };
5426
5926
  var Row = (_a) => {
5427
5927
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
5428
- return /* @__PURE__ */ React46.createElement("div", __spreadProps(__spreadValues({}, rest), {
5928
+ return /* @__PURE__ */ React50.createElement("div", __spreadProps(__spreadValues({}, rest), {
5429
5929
  className: classNames(tw("contents group"), className),
5430
5930
  role: "row"
5431
5931
  }));
5432
5932
  };
5433
5933
  var SortCell = (_a) => {
5434
5934
  var _b = _a, { children, direction = "none", onClick, sticky } = _b, rest = __objRest(_b, ["children", "direction", "onClick", "sticky"]);
5435
- return /* @__PURE__ */ React46.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), {
5935
+ return /* @__PURE__ */ React50.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), {
5436
5936
  "aria-sort": direction,
5437
5937
  role: "cell",
5438
5938
  sticky
5439
- }), /* @__PURE__ */ React46.createElement("span", {
5939
+ }), /* @__PURE__ */ React50.createElement("span", {
5440
5940
  className: getSortCellButtonClassNames(rest.align),
5441
5941
  role: "button",
5442
5942
  tabIndex: -1,
5443
5943
  onClick
5444
- }, children, /* @__PURE__ */ React46.createElement("div", {
5944
+ }, children, /* @__PURE__ */ React50.createElement("div", {
5445
5945
  "data-sort-icons": true,
5446
5946
  className: tw("flex flex-col", {
5447
5947
  "invisible group-hover:visible": direction === "none"
5448
5948
  })
5449
- }, /* @__PURE__ */ React46.createElement(InlineIcon, {
5949
+ }, /* @__PURE__ */ React50.createElement(InlineIcon, {
5450
5950
  icon: import_chevronUp3.default,
5451
5951
  className: getSortCellIconClassNames(direction === "descending")
5452
- }), /* @__PURE__ */ React46.createElement(InlineIcon, {
5952
+ }), /* @__PURE__ */ React50.createElement(InlineIcon, {
5453
5953
  icon: import_chevronDown4.default,
5454
5954
  className: getSortCellIconClassNames(direction === "ascending")
5455
5955
  }))));
@@ -5471,14 +5971,15 @@ var renameProperty = (oldProp, newProp, _a) => {
5471
5971
  var toSortDirection = (direction) => direction === "ascending" ? "asc" : direction === "descending" ? "desc" : false;
5472
5972
  var cellProps = (column) => ({
5473
5973
  key: column.key || column.headerName,
5474
- align: column.type === "number" || column.type === "action" ? "right" : "left"
5974
+ align: column.type === "number" || column.type === "action" ? "right" : "left",
5975
+ stickyColumn: column.sticky
5475
5976
  });
5476
5977
  var columnIsFieldColumn = (column) => Boolean(column && column.field);
5477
5978
 
5478
5979
  // src/utils/table/useTableSort.tsx
5479
- import React47 from "react";
5980
+ import React51 from "react";
5480
5981
  var useTableSort = () => {
5481
- const [sort, setSort] = React47.useState();
5982
+ const [sort, setSort] = React51.useState();
5482
5983
  const handleSortClick = (column) => {
5483
5984
  if (sort && sort.column.headerName === column.headerName) {
5484
5985
  if (sort.direction === "ascending") {
@@ -5509,53 +6010,71 @@ var sortRowsBy = (rows, sort) => {
5509
6010
  };
5510
6011
 
5511
6012
  // src/molecules/DataList/DataList.tsx
6013
+ var import_more = __toESM(require_more());
5512
6014
  var DataList2 = ({
5513
6015
  columns,
5514
6016
  rows,
5515
- sticky
6017
+ sticky,
6018
+ menu,
6019
+ onAction
5516
6020
  }) => {
5517
6021
  const [sort, updateSort] = useTableSort();
5518
6022
  const sortedRows = sortRowsBy(rows, sort);
5519
- const templateColumns = columns.map((column) => {
5520
- var _a;
5521
- return (_a = column.width) != null ? _a : "auto";
5522
- });
5523
- return /* @__PURE__ */ React48.createElement(Template, {
6023
+ const templateColumns = compact([
6024
+ ...columns.map((column) => {
6025
+ var _a;
6026
+ return (_a = column.width) != null ? _a : "auto";
6027
+ }),
6028
+ menu ? "auto" : void 0
6029
+ ]);
6030
+ return /* @__PURE__ */ React52.createElement(Template, {
5524
6031
  columns: templateColumns
5525
6032
  }, columns.map(
5526
- (column) => columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React48.createElement(DataList.SortCell, __spreadValues({
6033
+ (column) => columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React52.createElement(DataList.SortCell, __spreadValues({
5527
6034
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
5528
6035
  onClick: () => updateSort(column),
5529
6036
  sticky
5530
- }, cellProps(column)), column.headerName) : /* @__PURE__ */ React48.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
6037
+ }, cellProps(column)), column.headerName) : /* @__PURE__ */ React52.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
5531
6038
  sticky
5532
6039
  }), column.headerName)
5533
- ), /* @__PURE__ */ React48.createElement(List, {
6040
+ ), menu && /* @__PURE__ */ React52.createElement(DataList.HeadCell, {
6041
+ align: "right",
6042
+ "aria-label": "Context menu"
6043
+ }), /* @__PURE__ */ React52.createElement(List2, {
5534
6044
  items: sortedRows,
5535
- renderItem: (row, index) => /* @__PURE__ */ React48.createElement(DataList.Row, {
6045
+ renderItem: (row, index) => /* @__PURE__ */ React52.createElement(DataList.Row, {
5536
6046
  key: row.id
5537
- }, /* @__PURE__ */ React48.createElement(List, {
6047
+ }, /* @__PURE__ */ React52.createElement(List2, {
5538
6048
  items: columns,
5539
- renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React48.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React48.createElement(StatusChip, __spreadValues({
6049
+ renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React52.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React52.createElement(StatusChip, __spreadValues({
5540
6050
  dense: true
5541
- }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React48.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React48.createElement(SecondaryButton, __spreadValues({
6051
+ }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React52.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React52.createElement(SecondaryButton, __spreadValues({
5542
6052
  dense: true
5543
- }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React48.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React48.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React48.createElement(Item2, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React48.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
5544
- }))
6053
+ }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React52.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React52.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React52.createElement(Item4, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React52.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
6054
+ }), menu && /* @__PURE__ */ React52.createElement(DataList.Cell, {
6055
+ align: "right"
6056
+ }, /* @__PURE__ */ React52.createElement(DropdownMenu2, {
6057
+ onAction: (action) => onAction == null ? void 0 : onAction(action, row, index)
6058
+ }, /* @__PURE__ */ React52.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React52.createElement(IconButton, {
6059
+ "aria-label": "menu",
6060
+ icon: import_more.default
6061
+ })), isFunction(menu) ? menu(row, index) : menu)))
5545
6062
  }));
5546
6063
  };
5547
6064
 
5548
6065
  // src/molecules/DataTable/DataTable.tsx
5549
- import React51 from "react";
6066
+ import React55 from "react";
6067
+ import compact2 from "lodash/compact";
6068
+ import isFunction2 from "lodash/isFunction";
5550
6069
 
5551
6070
  // src/molecules/Table/Table.tsx
5552
- import React50 from "react";
6071
+ import React54 from "react";
5553
6072
 
5554
6073
  // src/utils/table/useScrollTarget.ts
5555
- import React49 from "react";
6074
+ import React53 from "react";
5556
6075
  var useScrollTarget = (callback) => {
5557
- const targetRef = React49.useRef(null);
5558
- React49.useLayoutEffect(() => {
6076
+ const targetRef = React53.useRef(null);
6077
+ React53.useLayoutEffect(() => {
5559
6078
  const observer = new IntersectionObserver((entries) => entries[0].isIntersecting && callback && callback(), {
5560
6079
  root: null,
5561
6080
  rootMargin: `0px 0px 200px 0px`
@@ -5573,12 +6092,12 @@ var Table2 = (_a) => {
5573
6092
  var _b = _a, { children, onPrev, onNext } = _b, rest = __objRest(_b, ["children", "onPrev", "onNext"]);
5574
6093
  const bottomRef = useScrollTarget(onNext);
5575
6094
  const topRef = useScrollTarget(onPrev);
5576
- return /* @__PURE__ */ React50.createElement("div", {
6095
+ return /* @__PURE__ */ React54.createElement("div", {
5577
6096
  className: "relative w-full"
5578
- }, /* @__PURE__ */ React50.createElement("div", {
6097
+ }, /* @__PURE__ */ React54.createElement("div", {
5579
6098
  ref: topRef,
5580
6099
  className: tw("absolute top-0 h-1 w-full left-0 bg-transparent")
5581
- }), /* @__PURE__ */ React50.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React50.createElement("div", {
6100
+ }), /* @__PURE__ */ React54.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React54.createElement("div", {
5582
6101
  ref: bottomRef,
5583
6102
  className: tw("absolute bottom-0 h-1 w-full left-0 bg-transparent")
5584
6103
  }));
@@ -5591,66 +6110,85 @@ Table2.SortCell = Table.SortCell;
5591
6110
  Table2.SelectCell = Table.SelectCell;
5592
6111
 
5593
6112
  // src/molecules/DataTable/DataTable.tsx
6113
+ var import_more2 = __toESM(require_more());
5594
6114
  var DataTable = (_a) => {
5595
6115
  var _b = _a, {
5596
6116
  columns,
5597
6117
  rows,
5598
6118
  noWrap = false,
5599
6119
  layout = "auto",
5600
- sticky
6120
+ sticky,
6121
+ menu,
6122
+ onAction
5601
6123
  } = _b, rest = __objRest(_b, [
5602
6124
  "columns",
5603
6125
  "rows",
5604
6126
  "noWrap",
5605
6127
  "layout",
5606
- "sticky"
6128
+ "sticky",
6129
+ "menu",
6130
+ "onAction"
5607
6131
  ]);
5608
6132
  const [sort, updateSort] = useTableSort();
5609
6133
  const sortedRows = sortRowsBy(rows, sort);
5610
- return /* @__PURE__ */ React51.createElement(Table2, __spreadProps(__spreadValues({}, rest), {
6134
+ return /* @__PURE__ */ React55.createElement(Table2, __spreadProps(__spreadValues({}, rest), {
5611
6135
  className: tw({
5612
6136
  "whitespace-nowrap": noWrap,
5613
6137
  "table-auto": layout === "auto",
5614
6138
  "table-fixed": layout === "fixed"
5615
6139
  })
5616
- }), /* @__PURE__ */ React51.createElement(Table2.Head, {
6140
+ }), /* @__PURE__ */ React55.createElement(Table2.Head, {
5617
6141
  sticky
5618
- }, columns.map(
5619
- (column) => columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React51.createElement(Table2.SortCell, __spreadValues({
5620
- direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
5621
- onClick: () => updateSort(column),
5622
- style: { width: column.width },
5623
- "aria-label": column.headerInvisible ? column.headerName : void 0
5624
- }, cellProps(column)), !column.headerInvisible && column.headerName) : /* @__PURE__ */ React51.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
5625
- style: { width: column.width },
5626
- "aria-label": column.headerInvisible ? column.headerName : void 0
5627
- }), !column.headerInvisible && column.headerName)
5628
- )), /* @__PURE__ */ React51.createElement(Table2.Body, null, /* @__PURE__ */ React51.createElement(List, {
6142
+ }, compact2([
6143
+ ...columns.map(
6144
+ (column) => columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React55.createElement(Table2.SortCell, __spreadValues({
6145
+ direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
6146
+ onClick: () => updateSort(column),
6147
+ style: { width: column.width },
6148
+ "aria-label": column.headerInvisible ? column.headerName : void 0
6149
+ }, cellProps(column)), !column.headerInvisible && column.headerName) : /* @__PURE__ */ React55.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
6150
+ style: { width: column.width },
6151
+ "aria-label": column.headerInvisible ? column.headerName : void 0
6152
+ }), !column.headerInvisible && column.headerName)
6153
+ ),
6154
+ menu ? /* @__PURE__ */ React55.createElement(Table2.Cell, {
6155
+ key: "__contextMenu",
6156
+ align: "right",
6157
+ "aria-label": "Context menu"
6158
+ }) : null
6159
+ ])), /* @__PURE__ */ React55.createElement(Table2.Body, null, /* @__PURE__ */ React55.createElement(List2, {
5629
6160
  items: sortedRows,
5630
- renderItem: (row, index) => /* @__PURE__ */ React51.createElement(Table2.Row, {
6161
+ renderItem: (row, index) => /* @__PURE__ */ React55.createElement(Table2.Row, {
5631
6162
  key: row.id
5632
- }, /* @__PURE__ */ React51.createElement(List, {
6163
+ }, /* @__PURE__ */ React55.createElement(List2, {
5633
6164
  items: columns,
5634
- renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React51.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React51.createElement(StatusChip, __spreadValues({
6165
+ renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React55.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React55.createElement(StatusChip, __spreadValues({
5635
6166
  dense: true
5636
- }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React51.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React51.createElement(SecondaryButton, __spreadValues({
6167
+ }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React55.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React55.createElement(SecondaryButton, __spreadValues({
5637
6168
  dense: true
5638
- }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React51.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React51.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React51.createElement(Item2, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React51.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
5639
- }))
6169
+ }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React55.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React55.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React55.createElement(Item4, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React55.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
6170
+ }), menu && /* @__PURE__ */ React55.createElement(Table2.Cell, {
6171
+ align: "right"
6172
+ }, /* @__PURE__ */ React55.createElement(DropdownMenu2, {
6173
+ onAction: (action) => onAction == null ? void 0 : onAction(action, row, index)
6174
+ }, /* @__PURE__ */ React55.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React55.createElement(IconButton, {
6175
+ "aria-label": "menu",
6176
+ icon: import_more2.default
6177
+ })), isFunction2(menu) ? menu(row, index) : menu)))
5640
6178
  })));
5641
6179
  };
5642
6180
 
5643
6181
  // src/molecules/Dialog/Dialog.tsx
5644
- import React53 from "react";
6182
+ import React57 from "react";
5645
6183
  import { useDialog } from "@react-aria/dialog";
5646
6184
  import { Overlay as Overlay2, useModalOverlay } from "@react-aria/overlays";
5647
6185
  import { useId } from "@react-aria/utils";
5648
6186
  import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
5649
- import omit7 from "lodash/omit";
6187
+ import omit8 from "lodash/omit";
5650
6188
 
5651
6189
  // src/atoms/Dialog/Dialog.tsx
5652
6190
  var import_confirm2 = __toESM(require_confirm());
5653
- var import_error2 = __toESM(require_error());
6191
+ var import_error3 = __toESM(require_error());
5654
6192
  var import_warningSign2 = __toESM(require_warningSign());
5655
6193
  var DIALOG_ICONS_AND_COLORS = {
5656
6194
  confirmation: {
@@ -5662,16 +6200,16 @@ var DIALOG_ICONS_AND_COLORS = {
5662
6200
  color: "secondary-70"
5663
6201
  },
5664
6202
  danger: {
5665
- icon: import_error2.default,
6203
+ icon: import_error3.default,
5666
6204
  color: "error-70"
5667
6205
  }
5668
6206
  };
5669
6207
 
5670
6208
  // src/atoms/Modal/Modal.tsx
5671
- import React52 from "react";
6209
+ import React56 from "react";
5672
6210
  var Modal = (_a) => {
5673
6211
  var _b = _a, { children, className, open } = _b, rest = __objRest(_b, ["children", "className", "open"]);
5674
- return open ? /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
6212
+ return open ? /* @__PURE__ */ React56.createElement("div", __spreadProps(__spreadValues({}, rest), {
5675
6213
  className: classNames(
5676
6214
  tw("inset-0 overflow-y-auto z-modal flex justify-center items-center fixed py-7"),
5677
6215
  className
@@ -5680,14 +6218,14 @@ var Modal = (_a) => {
5680
6218
  };
5681
6219
  Modal.BackDrop = (_a) => {
5682
6220
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
5683
- return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
6221
+ return /* @__PURE__ */ React56.createElement("div", __spreadProps(__spreadValues({}, rest), {
5684
6222
  className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-navyBlue-100 opacity-70"), className)
5685
6223
  }));
5686
6224
  };
5687
- Modal.Dialog = React52.forwardRef(
6225
+ Modal.Dialog = React56.forwardRef(
5688
6226
  (_a, ref) => {
5689
6227
  var _b = _a, { children, className, size = "sm" } = _b, rest = __objRest(_b, ["children", "className", "size"]);
5690
- return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({
6228
+ return /* @__PURE__ */ React56.createElement("div", __spreadProps(__spreadValues({
5691
6229
  ref,
5692
6230
  "aria-modal": "true"
5693
6231
  }, rest), {
@@ -5705,31 +6243,31 @@ Modal.Dialog = React52.forwardRef(
5705
6243
  );
5706
6244
  Modal.Header = (_a) => {
5707
6245
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5708
- return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
6246
+ return /* @__PURE__ */ React56.createElement("div", __spreadProps(__spreadValues({}, rest), {
5709
6247
  className: classNames(tw("px-7 py-6 gap-3 flex items-center"), className)
5710
6248
  }), children);
5711
6249
  };
5712
6250
  Modal.HeaderImage = (_a) => {
5713
6251
  var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
5714
6252
  const common = tw("h-[120px] min-h-[120px] w-full ");
5715
- return backgroundImage ? /* @__PURE__ */ React52.createElement("img", __spreadProps(__spreadValues({
6253
+ return backgroundImage ? /* @__PURE__ */ React56.createElement("img", __spreadProps(__spreadValues({
5716
6254
  "aria-hidden": true,
5717
6255
  src: backgroundImage != null ? backgroundImage : void 0
5718
6256
  }, rest), {
5719
6257
  className: classNames(common, tw("object-cover"), className)
5720
- })) : /* @__PURE__ */ React52.createElement("div", {
6258
+ })) : /* @__PURE__ */ React56.createElement("div", {
5721
6259
  className: classNames(common, tw("bg-grey-5"), className)
5722
6260
  });
5723
6261
  };
5724
6262
  Modal.CloseButtonContainer = (_a) => {
5725
6263
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
5726
- return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
6264
+ return /* @__PURE__ */ React56.createElement("div", __spreadProps(__spreadValues({}, rest), {
5727
6265
  className: classNames(tw("absolute top-[20px] right-[28px]"), className)
5728
6266
  }));
5729
6267
  };
5730
6268
  Modal.Title = (_a) => {
5731
6269
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5732
- return /* @__PURE__ */ React52.createElement(Typography, __spreadValues({
6270
+ return /* @__PURE__ */ React56.createElement(Typography, __spreadValues({
5733
6271
  htmlTag: "h2",
5734
6272
  variant: "subheading",
5735
6273
  color: "grey-90",
@@ -5738,51 +6276,51 @@ Modal.Title = (_a) => {
5738
6276
  };
5739
6277
  Modal.Subtitle = (_a) => {
5740
6278
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
5741
- return /* @__PURE__ */ React52.createElement(Typography, __spreadValues({
6279
+ return /* @__PURE__ */ React56.createElement(Typography, __spreadValues({
5742
6280
  variant: "small",
5743
6281
  color: "grey-60"
5744
6282
  }, rest), children);
5745
6283
  };
5746
6284
  Modal.TitleContainer = (_a) => {
5747
6285
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5748
- return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
6286
+ return /* @__PURE__ */ React56.createElement("div", __spreadProps(__spreadValues({}, rest), {
5749
6287
  className: classNames(tw("flex flex-col grow gap-2"), className)
5750
6288
  }), children);
5751
6289
  };
5752
6290
  Modal.Body = (_a) => {
5753
6291
  var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
5754
- return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
6292
+ return /* @__PURE__ */ React56.createElement("div", __spreadProps(__spreadValues({}, rest), {
5755
6293
  className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
5756
6294
  style: __spreadValues({ maxHeight }, style)
5757
6295
  }), children);
5758
6296
  };
5759
6297
  Modal.Footer = (_a) => {
5760
6298
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5761
- return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
6299
+ return /* @__PURE__ */ React56.createElement("div", __spreadProps(__spreadValues({}, rest), {
5762
6300
  className: classNames(tw("px-7 py-6"), className)
5763
6301
  }), children);
5764
6302
  };
5765
6303
  Modal.Actions = (_a) => {
5766
6304
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5767
- return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
6305
+ return /* @__PURE__ */ React56.createElement("div", __spreadProps(__spreadValues({}, rest), {
5768
6306
  className: classNames(tw("flex gap-4 justify-end"), className)
5769
6307
  }), children);
5770
6308
  };
5771
6309
 
5772
6310
  // src/molecules/Dialog/Dialog.tsx
5773
6311
  var Dialog = (props) => {
5774
- const ref = React53.useRef(null);
6312
+ const ref = React57.useRef(null);
5775
6313
  const state = useOverlayTriggerState2({ isOpen: props.open });
5776
6314
  const { modalProps, underlayProps } = useModalOverlay({}, state, ref);
5777
6315
  if (!state.isOpen) {
5778
6316
  return null;
5779
6317
  }
5780
- return /* @__PURE__ */ React53.createElement(Overlay2, null, /* @__PURE__ */ React53.createElement(Modal, {
6318
+ return /* @__PURE__ */ React57.createElement(Overlay2, null, /* @__PURE__ */ React57.createElement(Modal, {
5781
6319
  open: true
5782
- }, /* @__PURE__ */ React53.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React53.createElement(Modal.Dialog, __spreadValues({
6320
+ }, /* @__PURE__ */ React57.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React57.createElement(Modal.Dialog, __spreadValues({
5783
6321
  ref,
5784
6322
  size: "sm"
5785
- }, modalProps), /* @__PURE__ */ React53.createElement(DialogWrapper, __spreadValues({}, props)))));
6323
+ }, modalProps), /* @__PURE__ */ React57.createElement(DialogWrapper, __spreadValues({}, props)))));
5786
6324
  };
5787
6325
  var DialogWrapper = ({
5788
6326
  title,
@@ -5791,36 +6329,36 @@ var DialogWrapper = ({
5791
6329
  primaryAction,
5792
6330
  secondaryAction
5793
6331
  }) => {
5794
- const ref = React53.useRef(null);
6332
+ const ref = React57.useRef(null);
5795
6333
  const labelledBy = useId();
5796
6334
  const describedBy = useId();
5797
6335
  const { dialogProps } = useDialog(
5798
6336
  { "role": "alertdialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
5799
6337
  ref
5800
6338
  );
5801
- return /* @__PURE__ */ React53.createElement("div", __spreadProps(__spreadValues({
6339
+ return /* @__PURE__ */ React57.createElement("div", __spreadProps(__spreadValues({
5802
6340
  ref
5803
6341
  }, dialogProps), {
5804
6342
  className: tw("outline-none")
5805
- }), /* @__PURE__ */ React53.createElement(Modal.Header, null, /* @__PURE__ */ React53.createElement(Icon, {
6343
+ }), /* @__PURE__ */ React57.createElement(Modal.Header, null, /* @__PURE__ */ React57.createElement(Icon, {
5806
6344
  icon: DIALOG_ICONS_AND_COLORS[type].icon,
5807
6345
  color: DIALOG_ICONS_AND_COLORS[type].color,
5808
6346
  fontSize: 20
5809
- }), /* @__PURE__ */ React53.createElement(Modal.Title, {
6347
+ }), /* @__PURE__ */ React57.createElement(Modal.Title, {
5810
6348
  id: labelledBy,
5811
6349
  variant: "large-strong",
5812
6350
  color: DIALOG_ICONS_AND_COLORS[type].color
5813
- }, title)), /* @__PURE__ */ React53.createElement(Modal.Body, {
6351
+ }, title)), /* @__PURE__ */ React57.createElement(Modal.Body, {
5814
6352
  id: describedBy
5815
- }, children), /* @__PURE__ */ React53.createElement(Modal.Footer, null, /* @__PURE__ */ React53.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React53.createElement(GhostButton, __spreadValues({
6353
+ }, children), /* @__PURE__ */ React57.createElement(Modal.Footer, null, /* @__PURE__ */ React57.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React57.createElement(GhostButton, __spreadValues({
5816
6354
  key: secondaryAction.text
5817
- }, omit7(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React53.createElement(SecondaryButton, __spreadValues({
6355
+ }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React57.createElement(SecondaryButton, __spreadValues({
5818
6356
  key: primaryAction.text
5819
- }, omit7(primaryAction, "text")), primaryAction.text))));
6357
+ }, omit8(primaryAction, "text")), primaryAction.text))));
5820
6358
  };
5821
6359
 
5822
6360
  // src/molecules/Divider/Divider.tsx
5823
- import React54 from "react";
6361
+ import React58 from "react";
5824
6362
  var sizeClasses = {
5825
6363
  horizontal: {
5826
6364
  1: "h-1px",
@@ -5842,7 +6380,7 @@ var sizeClasses = {
5842
6380
  var Divider2 = (_a) => {
5843
6381
  var _b = _a, { direction = "horizontal", size = 1 } = _b, props = __objRest(_b, ["direction", "size"]);
5844
6382
  const sizeClass = sizeClasses[direction][size];
5845
- return /* @__PURE__ */ React54.createElement("div", __spreadProps(__spreadValues({}, props), {
6383
+ return /* @__PURE__ */ React58.createElement("div", __spreadProps(__spreadValues({}, props), {
5846
6384
  className: tw(`bg-grey-5 ${sizeClass}`, {
5847
6385
  "block w-full": direction === "horizontal",
5848
6386
  "inline-block h-full": direction === "vertical"
@@ -5851,22 +6389,22 @@ var Divider2 = (_a) => {
5851
6389
  };
5852
6390
 
5853
6391
  // src/molecules/Dropdown/Dropdown.tsx
5854
- import React57 from "react";
6392
+ import React61 from "react";
5855
6393
 
5856
6394
  // src/molecules/Popover/Popover.tsx
5857
- import React56, { useRef as useRef6 } from "react";
5858
- import { PressResponder, usePress } from "@react-aria/interactions";
6395
+ import React60, { useRef as useRef7 } from "react";
6396
+ import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
5859
6397
  import { useOverlayTrigger } from "@react-aria/overlays";
5860
- import { mergeProps as mergeProps2 } from "@react-aria/utils";
6398
+ import { mergeProps as mergeProps3 } from "@react-aria/utils";
5861
6399
  import { useOverlayTriggerState as useOverlayTriggerState3 } from "@react-stately/overlays";
5862
6400
 
5863
6401
  // src/molecules/Popover/Dialog.tsx
5864
- import React55 from "react";
6402
+ import React59 from "react";
5865
6403
  import { useDialog as useDialog2 } from "@react-aria/dialog";
5866
6404
  var Dialog2 = ({ children }) => {
5867
- const ref = React55.useRef(null);
6405
+ const ref = React59.useRef(null);
5868
6406
  const { dialogProps } = useDialog2({}, ref);
5869
- return /* @__PURE__ */ React55.createElement("div", __spreadProps(__spreadValues({
6407
+ return /* @__PURE__ */ React59.createElement("div", __spreadProps(__spreadValues({
5870
6408
  ref
5871
6409
  }, dialogProps), {
5872
6410
  className: tw("outline-none")
@@ -5897,24 +6435,24 @@ var Popover2 = (props) => {
5897
6435
  crossOffset,
5898
6436
  shouldFlip
5899
6437
  } = props;
5900
- const triggerRef = useRef6(null);
6438
+ const triggerRef = useRef7(null);
5901
6439
  const state = useOverlayTriggerState3(props);
5902
6440
  const { triggerProps, overlayProps } = useOverlayTrigger({ type: type != null ? type : "dialog" }, state, triggerRef);
5903
- return /* @__PURE__ */ React56.createElement(PopoverContext.Provider, {
6441
+ return /* @__PURE__ */ React60.createElement(PopoverContext.Provider, {
5904
6442
  value: {
5905
6443
  state
5906
6444
  }
5907
- }, React56.Children.map(props.children, (child) => {
6445
+ }, React60.Children.map(props.children, (child) => {
5908
6446
  if (isComponentType(child, Popover2.Trigger)) {
5909
- return /* @__PURE__ */ React56.createElement(PressResponder, __spreadValues({
6447
+ return /* @__PURE__ */ React60.createElement(PressResponder2, __spreadValues({
5910
6448
  ref: triggerRef
5911
- }, triggerProps), /* @__PURE__ */ React56.createElement(PopoverTriggerWrapper, {
6449
+ }, triggerProps), /* @__PURE__ */ React60.createElement(PopoverTriggerWrapper, {
5912
6450
  "data-testid": props["data-testid"],
5913
6451
  "aria-controls": id
5914
6452
  }, child.props.children));
5915
6453
  }
5916
6454
  if (isComponentType(child, Popover2.Panel)) {
5917
- return state.isOpen && /* @__PURE__ */ React56.createElement(PopoverOverlay, __spreadValues({
6455
+ return state.isOpen && /* @__PURE__ */ React60.createElement(PopoverOverlay, __spreadValues({
5918
6456
  triggerRef: targetRef != null ? targetRef : triggerRef,
5919
6457
  state,
5920
6458
  placement,
@@ -5925,7 +6463,7 @@ var Popover2 = (props) => {
5925
6463
  offset,
5926
6464
  crossOffset,
5927
6465
  shouldFlip
5928
- }, overlayProps), containFocus ? /* @__PURE__ */ React56.createElement(Dialog2, null, child.props.children) : child.props.children);
6466
+ }, overlayProps), containFocus ? /* @__PURE__ */ React60.createElement(Dialog2, null, child.props.children) : child.props.children);
5929
6467
  }
5930
6468
  throw new Error("Invalid children element type");
5931
6469
  }));
@@ -5938,593 +6476,147 @@ Panel.displayName = "Popover.Panel";
5938
6476
  Popover2.Panel = Panel;
5939
6477
  var asPopoverButton = (Component, displayName) => {
5940
6478
  const PopoverButton2 = (props) => {
5941
- const { onClick } = props;
5942
- const { state } = usePopoverContext();
5943
- const handleClick = (e) => {
5944
- state.close();
5945
- onClick == null ? void 0 : onClick(e);
5946
- };
5947
- return /* @__PURE__ */ React56.createElement(Component, __spreadProps(__spreadValues({}, props), {
5948
- onClick: handleClick
5949
- }));
5950
- };
5951
- PopoverButton2.displayName = displayName;
5952
- return PopoverButton2;
5953
- };
5954
- var PopoverButton = asPopoverButton(Button, "PopoverButton");
5955
- Popover2.Button = PopoverButton;
5956
- var PopoverTriggerWrapper = (_a) => {
5957
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
5958
- var _a2;
5959
- const ref = useRef6(null);
5960
- const trigger = React56.Children.only(children);
5961
- const { pressProps } = usePress(__spreadProps(__spreadValues({}, rest), { ref }));
5962
- return React56.cloneElement(trigger, __spreadProps(__spreadValues({
5963
- "ref": ref
5964
- }, mergeProps2(pressProps, trigger.props)), {
5965
- "aria-controls": (_a2 = rest["aria-controls"]) != null ? _a2 : pressProps["aria-controls"]
5966
- }));
5967
- };
5968
-
5969
- // src/molecules/Dropdown/Dropdown.tsx
5970
- var Dropdown = ({ children, content, placement = "bottom-left" }) => {
5971
- return /* @__PURE__ */ React57.createElement(Popover2, {
5972
- type: "menu",
5973
- placement
5974
- }, /* @__PURE__ */ React57.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React57.createElement(Popover2.Panel, null, content));
5975
- };
5976
- var DropdownMenu = ({
5977
- title,
5978
- children,
5979
- contentId,
5980
- triggerId,
5981
- setClose = () => void 0
5982
- }) => {
5983
- const menuRef = React57.useRef(null);
5984
- React57.useEffect(() => {
5985
- const id = setTimeout(() => {
5986
- var _a, _b, _c;
5987
- return (_c = (_b = (_a = menuRef.current) == null ? void 0 : _a.children) == null ? void 0 : _b[0]) == null ? void 0 : _c.focus();
5988
- });
5989
- return () => clearTimeout(id);
5990
- }, [menuRef.current]);
5991
- return /* @__PURE__ */ React57.createElement("div", {
5992
- style: { minWidth: "250px" },
5993
- className: tw("py-3 bg-white")
5994
- }, !!title && /* @__PURE__ */ React57.createElement("div", {
5995
- className: tw("px-4 py-4 text-left text-grey-100 typography-default-strong")
5996
- }, title), /* @__PURE__ */ React57.createElement("ol", {
5997
- role: "menu",
5998
- ref: menuRef,
5999
- id: contentId,
6000
- "aria-labelledby": triggerId
6001
- }, React57.Children.map(children, (child) => {
6002
- return React57.cloneElement(child, { setClose });
6003
- })));
6004
- };
6005
- var DropdownItem = (_a) => {
6006
- var _b = _a, {
6007
- children,
6008
- disabled = false,
6009
- tooltip,
6010
- tooltipPlacement,
6011
- color = "default",
6012
- onSelect,
6013
- setClose = () => void 0
6014
- } = _b, props = __objRest(_b, [
6015
- "children",
6016
- "disabled",
6017
- "tooltip",
6018
- "tooltipPlacement",
6019
- "color",
6020
- "onSelect",
6021
- "setClose"
6022
- ]);
6023
- const { state } = usePopoverContext();
6024
- const handleSelect = () => {
6025
- onSelect == null ? void 0 : onSelect();
6026
- state.close();
6027
- setClose();
6028
- };
6029
- const handleKeyDown = (event) => {
6030
- const target = event.target;
6031
- const parent = target.parentElement;
6032
- const first = parent.firstChild;
6033
- const last = parent.lastChild;
6034
- const next = target.nextElementSibling;
6035
- const prev = target.previousElementSibling;
6036
- if (event.key === "ArrowUp") {
6037
- prev ? prev.focus() : last.focus();
6038
- } else if (event.key === "ArrowDown") {
6039
- next ? next.focus() : first.focus();
6040
- } else if (event.key === "Tab") {
6041
- event.preventDefault();
6042
- event.stopPropagation();
6043
- } else if (event.key === "Home" || event.key === "PageUp") {
6044
- first.focus();
6045
- } else if (event.key === "End" || event.key === "PageDown") {
6046
- last.focus();
6047
- } else if (event.key === "Enter") {
6048
- !disabled && handleSelect();
6049
- }
6050
- };
6051
- const handleClick = (e) => {
6052
- e.stopPropagation();
6053
- if (!disabled) {
6054
- handleSelect();
6055
- }
6056
- };
6057
- const itemContent = /* @__PURE__ */ React57.createElement("div", {
6058
- className: tw("py-3 px-4")
6059
- }, children);
6060
- return /* @__PURE__ */ React57.createElement("li", __spreadProps(__spreadValues({
6061
- role: "menuitem",
6062
- tabIndex: -1,
6063
- onClick: handleClick,
6064
- onKeyDown: handleKeyDown
6065
- }, props), {
6066
- className: tw("typography-small flex items-center focus:ring-0", {
6067
- "text-grey-70 cursor-pointer hover:bg-grey-0": !disabled,
6068
- "text-grey-10 cursor-not-allowed": disabled,
6069
- "text-primary-70 hover:text-primary-80": color === "danger" && !disabled
6070
- })
6071
- }), tooltip ? /* @__PURE__ */ React57.createElement(Tooltip, {
6072
- content: tooltip,
6073
- placement: tooltipPlacement,
6074
- inline: false
6075
- }, /* @__PURE__ */ React57.createElement("div", {
6076
- tabIndex: 0,
6077
- className: tw("grow")
6078
- }, itemContent)) : itemContent);
6079
- };
6080
- Dropdown.Menu = DropdownMenu;
6081
- Dropdown.Item = DropdownItem;
6082
-
6083
- // src/molecules/DropdownMenu/DropdownMenu.tsx
6084
- import React61 from "react";
6085
- import { useFilter } from "@react-aria/i18n";
6086
- import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
6087
- import { useMenu, useMenuItem, useMenuSection, useMenuTrigger } from "@react-aria/menu";
6088
- import { useSeparator } from "@react-aria/separator";
6089
- import { mergeProps as mergeProps3 } from "@react-aria/utils";
6090
- import { Item as Item4, Section } from "@react-stately/collections";
6091
- import { useMenuTriggerState } from "@react-stately/menu";
6092
- import { useTreeState } from "@react-stately/tree";
6093
-
6094
- // src/molecules/Input/Input.tsx
6095
- import React59, { forwardRef, useImperativeHandle, useRef as useRef7, useState as useState6 } from "react";
6096
- import omit8 from "lodash/omit";
6097
- import toString from "lodash/toString";
6098
- import uniqueId3 from "lodash/uniqueId";
6099
-
6100
- // src/utils/form/InputAdornment/InputAdornment.tsx
6101
- import React58 from "react";
6102
- var import_cross4 = __toESM(require_cross());
6103
- var import_error3 = __toESM(require_error());
6104
- var import_search2 = __toESM(require_search());
6105
- var import_tick3 = __toESM(require_tick());
6106
- var InputAdornment = ({ placement = "right", className, dense, children }) => {
6107
- return /* @__PURE__ */ React58.createElement("span", {
6108
- className: classNames(className, "absolute inset-y-0 grow-0 text-grey-40 flex items-center mx-3", {
6109
- "right-0": placement === "right",
6110
- "left-0": placement === "left",
6111
- "typography-small": dense,
6112
- "typography-default-strong": !dense
6113
- })
6114
- }, /* @__PURE__ */ React58.createElement(Flexbox, {
6115
- gap: "3",
6116
- wrap: "wrap"
6117
- }, children));
6118
- };
6119
- var SearchIcon = ({ onClick }) => /* @__PURE__ */ React58.createElement(Icon, {
6120
- icon: import_search2.default,
6121
- color: "grey-30",
6122
- "data-testid": "icon-search",
6123
- onClick
6124
- });
6125
- var ResetIcon = ({ onClick }) => /* @__PURE__ */ React58.createElement(Icon, {
6126
- className: "hover:cursor-pointer",
6127
- icon: import_cross4.default,
6128
- color: "grey-30",
6129
- "data-testid": "icon-reset",
6130
- onClick
6131
- });
6132
-
6133
- // src/molecules/Input/Input.tsx
6134
- var createInput = (displayName, opts = {}) => {
6135
- const InputComponent = forwardRef(
6136
- (_a, ref) => {
6137
- var _b = _a, {
6138
- type = "text",
6139
- maxLength,
6140
- valid = true,
6141
- required = false,
6142
- endAdornment,
6143
- disabled = false,
6144
- readOnly = false
6145
- } = _b, props = __objRest(_b, [
6146
- "type",
6147
- "maxLength",
6148
- "valid",
6149
- "required",
6150
- "endAdornment",
6151
- "disabled",
6152
- "readOnly"
6153
- ]);
6154
- var _a2;
6155
- const inputRef = React59.useRef(null);
6156
- useImperativeHandle(ref, () => inputRef.current);
6157
- const handleReset = () => {
6158
- var _a3;
6159
- const el = inputRef.current;
6160
- if (el) {
6161
- const lastValue = el.value;
6162
- el.value = "";
6163
- (_a3 = el._valueTracker) == null ? void 0 : _a3.setValue(lastValue);
6164
- el.dispatchEvent(new Event("change", { bubbles: true }));
6165
- el.focus();
6166
- }
6167
- };
6168
- return /* @__PURE__ */ React59.createElement("span", {
6169
- className: tw("relative block")
6170
- }, opts.adornment && /* @__PURE__ */ React59.createElement(InputAdornment, {
6171
- placement: "left"
6172
- }, opts.adornment), /* @__PURE__ */ React59.createElement("input", __spreadProps(__spreadValues({
6173
- ref: inputRef,
6174
- type
6175
- }, props), {
6176
- disabled,
6177
- maxLength,
6178
- required,
6179
- readOnly,
6180
- className: classNames(
6181
- {
6182
- "pl-7": opts.adornment
6183
- },
6184
- getCommonInputStyles({ readOnly, valid }),
6185
- props.className
6186
- )
6187
- })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React59.createElement(InputAdornment, null, /* @__PURE__ */ React59.createElement(ResetIcon, {
6188
- onClick: handleReset
6189
- })), !opts.canReset && endAdornment && /* @__PURE__ */ React59.createElement(InputAdornment, null, endAdornment));
6190
- }
6191
- );
6192
- InputComponent.displayName = displayName;
6193
- InputComponent.Skeleton = () => /* @__PURE__ */ React59.createElement(Skeleton, {
6194
- height: 38
6195
- });
6196
- return InputComponent;
6197
- };
6198
- var InputBase = createInput("InputBase");
6199
- var SearchInput = createInput("SearchInput", { adornment: /* @__PURE__ */ React59.createElement(SearchIcon, null), canReset: true });
6200
- var Input2 = React59.forwardRef((_a, ref) => {
6201
- var _b = _a, { readOnly = false } = _b, props = __objRest(_b, ["readOnly"]);
6202
- var _a2, _b2, _c;
6203
- const [value, setValue] = useState6((_b2 = (_a2 = props.value) != null ? _a2 : props.defaultValue) != null ? _b2 : "");
6204
- const id = useRef7((_c = props.id) != null ? _c : `input-${uniqueId3()}`);
6205
- const errorMessageId = uniqueId3();
6206
- const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
6207
- const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
6208
- const baseProps = omit8(props, Object.keys(labelControlProps));
6209
- return /* @__PURE__ */ React59.createElement(LabelControl, __spreadValues({
6210
- id: `${id.current}-label`,
6211
- htmlFor: id.current,
6212
- messageId: errorMessageId,
6213
- length: value !== void 0 ? toString(value).length : void 0
6214
- }, labelControlProps), /* @__PURE__ */ React59.createElement(InputBase, __spreadProps(__spreadValues(__spreadValues({
6215
- ref
6216
- }, baseProps), errorProps), {
6217
- id: id.current,
6218
- "data-testid": dataTestId,
6219
- onChange: (e) => {
6220
- var _a3;
6221
- setValue(e.currentTarget.value);
6222
- (_a3 = props.onChange) == null ? void 0 : _a3.call(props, e);
6223
- },
6224
- disabled: props.disabled,
6225
- maxLength: props.maxLength,
6226
- required: props.required,
6227
- valid: props.valid,
6228
- readOnly
6229
- })));
6230
- });
6231
- Input2.displayName = "Input";
6232
- Input2.Skeleton = () => /* @__PURE__ */ React59.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React59.createElement(InputBase.Skeleton, null));
6233
- Input2.Skeleton.displayName = "Input.Skeleton";
6234
-
6235
- // src/atoms/DropdownMenu/DropdownMenu.tsx
6236
- import React60 from "react";
6237
- var import_tick4 = __toESM(require_tick());
6238
- var DropdownMenu2 = React60.forwardRef(
6239
- (_a, ref) => {
6240
- var _b = _a, { maxHeight = "450px", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["maxHeight", "minWidth", "maxWidth", "className", "children"]);
6241
- return /* @__PURE__ */ React60.createElement("div", __spreadValues({
6242
- ref,
6243
- style: { maxHeight, minWidth, maxWidth },
6244
- className: classNames(className, "bg-white w-full flex flex-col overflow-x-hidden typography-small text-grey-70")
6245
- }, props), children);
6246
- }
6247
- );
6248
- var ContentContainer = ({ children }) => /* @__PURE__ */ React60.createElement("div", {
6249
- className: tw("p-3 overflow-y-auto overflow-x-hidden")
6250
- }, children);
6251
- DropdownMenu2.ContentContainer = ContentContainer;
6252
- var List2 = React60.forwardRef(
6253
- (_a, ref) => {
6254
- var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
6255
- return /* @__PURE__ */ React60.createElement("ul", __spreadValues({
6256
- ref,
6257
- className: classNames(className, "outline-none ring-0")
6258
- }, props), children);
6259
- }
6260
- );
6261
- DropdownMenu2.List = List2;
6262
- var Group2 = React60.forwardRef(
6263
- (_a, ref) => {
6264
- var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
6265
- return /* @__PURE__ */ React60.createElement("li", __spreadValues({
6266
- ref
6267
- }, props), title && /* @__PURE__ */ React60.createElement("div", __spreadValues({
6268
- className: classNames(className, "p-3 text-grey-40 uppercase cursor-default typography-caption", {
6269
- "text-grey-20": props.disabled
6270
- })
6271
- }, titleProps), title), children);
6272
- }
6273
- );
6274
- DropdownMenu2.Group = Group2;
6275
- var Item3 = React60.forwardRef(
6276
- (_a, ref) => {
6277
- var _b = _a, { kind, highlighted, selected, className, icon, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "children"]);
6278
- return /* @__PURE__ */ React60.createElement("li", __spreadValues({
6279
- ref,
6280
- className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
6281
- "cursor-pointer hover:bg-grey-0": !props.disabled,
6282
- "bg-grey-0": highlighted,
6283
- "text-primary-80": kind === "action",
6284
- "text-grey-20 cursor-not-allowed": props.disabled
6285
- })
6286
- }, props), icon && /* @__PURE__ */ React60.createElement(InlineIcon, {
6287
- icon
6288
- }), /* @__PURE__ */ React60.createElement("span", {
6289
- className: tw("grow")
6290
- }, children), selected && /* @__PURE__ */ React60.createElement(InlineIcon, {
6291
- icon: import_tick4.default
6292
- }));
6293
- }
6294
- );
6295
- DropdownMenu2.Item = Item3;
6296
- var Description = ({ disabled, children }) => /* @__PURE__ */ React60.createElement(Typography2.Caption, {
6297
- color: disabled ? "grey-20" : "grey-40"
6298
- }, children);
6299
- DropdownMenu2.Description = Description;
6300
- var Separator = (_a) => {
6301
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6302
- return /* @__PURE__ */ React60.createElement("li", __spreadProps(__spreadValues({}, props), {
6303
- className: classNames(className, tw("m-3 block bg-grey-5 h-[1px]"))
6304
- }));
6305
- };
6306
- DropdownMenu2.Separator = Separator;
6307
- var EmptyStateContainer2 = (_a) => {
6308
- var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6309
- return /* @__PURE__ */ React60.createElement("div", __spreadValues({
6310
- className: classNames(tw("border border-dashed border-grey-10 p-3"), className)
6311
- }, props), children);
6312
- };
6313
- DropdownMenu2.EmptyStateContainer = EmptyStateContainer2;
6314
-
6315
- // src/molecules/DropdownMenu/utils.ts
6316
- import { ListCollection } from "@react-stately/list";
6317
- var filterCollection = (collection, inputValue, filter) => {
6318
- return new ListCollection(filterNodes(collection, inputValue, filter));
6319
- };
6320
- var filterNodes = (nodes, inputValue, filter) => {
6321
- const filteredNode = [];
6322
- for (const node of nodes) {
6323
- if (node.type === "section" && node.hasChildNodes) {
6324
- const filtered = filterNodes(node.childNodes, inputValue, filter);
6325
- if ([...filtered].length > 0) {
6326
- filteredNode.push(__spreadProps(__spreadValues({}, node), { childNodes: filtered }));
6327
- }
6328
- } else if (node.type !== "section" && filter(node.textValue, inputValue)) {
6329
- filteredNode.push(__spreadValues({}, node));
6330
- }
6331
- }
6332
- return filteredNode;
6333
- };
6334
-
6335
- // src/molecules/DropdownMenu/DropdownMenu.tsx
6336
- var DropdownMenu3 = (_a) => {
6337
- var _b = _a, {
6338
- onAction,
6339
- selectionMode,
6340
- selection,
6341
- onSelectionChange,
6342
- placement = "bottom-left",
6343
- minWidth,
6344
- maxWidth,
6345
- searchable = false,
6346
- emptyState,
6347
- header,
6348
- footer,
6349
- children
6350
- } = _b, props = __objRest(_b, [
6351
- "onAction",
6352
- "selectionMode",
6353
- "selection",
6354
- "onSelectionChange",
6355
- "placement",
6356
- "minWidth",
6357
- "maxWidth",
6358
- "searchable",
6359
- "emptyState",
6360
- "header",
6361
- "footer",
6362
- "children"
6363
- ]);
6364
- const triggerRef = React61.useRef(null);
6365
- const [trigger, items] = extractTriggerAndItems(children);
6366
- const state = useMenuTriggerState(props);
6367
- const { menuTriggerProps, menuProps } = useMenuTrigger({}, state, triggerRef);
6368
- return /* @__PURE__ */ React61.createElement("div", null, /* @__PURE__ */ React61.createElement(PressResponder2, __spreadValues({
6369
- ref: triggerRef,
6370
- onPress: () => state.toggle()
6371
- }, menuTriggerProps), /* @__PURE__ */ React61.createElement(TriggerWrapper, null, trigger.props.children)), state.isOpen && /* @__PURE__ */ React61.createElement(PopoverOverlay, {
6372
- triggerRef,
6373
- state,
6374
- placement,
6375
- focusable: false
6376
- }, /* @__PURE__ */ React61.createElement(MenuWrapper, __spreadValues({
6377
- onAction,
6378
- selectionMode,
6379
- selection,
6380
- onSelectionChange,
6381
- searchable,
6382
- emptyState,
6383
- minWidth,
6384
- maxWidth,
6385
- header,
6386
- footer
6387
- }, menuProps), items.props.children)));
6388
- };
6389
- var MenuTrigger = () => null;
6390
- var MenuItems = () => null;
6391
- DropdownMenu3.Trigger = MenuTrigger;
6392
- DropdownMenu3.Trigger.displayName = "DropdownMenu.Trigger";
6393
- DropdownMenu3.Items = MenuItems;
6394
- DropdownMenu3.Items.displayName = "DropdownMenu.Items";
6395
- DropdownMenu3.Item = Item4;
6396
- DropdownMenu3.Item.displayName = "DropdownMenu.Item";
6397
- DropdownMenu3.Section = Section;
6398
- DropdownMenu3.Section.displayName = "DropdownMenu.Section";
6399
- var TriggerWrapper = (_a) => {
6400
- var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
6401
- const ref = React61.useRef(null);
6402
- const { pressProps } = usePress2(__spreadProps(__spreadValues({}, props), { ref }));
6403
- const trigger = React61.Children.only(children);
6404
- if (!trigger || !React61.isValidElement(trigger)) {
6405
- throw new Error("<DropdownMenu.Trigger> must have valid child");
6406
- }
6407
- return React61.cloneElement(trigger, __spreadValues({ ref }, mergeProps3(pressProps, props)));
6408
- };
6409
- var isSectionNode = (item) => item.type === "section";
6410
- var isItemNode = (item) => item.type === "item";
6411
- var MenuWrapper = (_a) => {
6412
- var _b = _a, {
6413
- selection: selectedKeys,
6414
- minWidth,
6415
- maxWidth,
6416
- searchable,
6417
- emptyState,
6418
- header,
6419
- footer
6420
- } = _b, props = __objRest(_b, [
6421
- "selection",
6422
- "minWidth",
6423
- "maxWidth",
6424
- "searchable",
6425
- "emptyState",
6426
- "header",
6427
- "footer"
6428
- ]);
6429
- const ref = React61.useRef(null);
6430
- const disabledKeys = getDisabledItemKeys(props.children);
6431
- const state = useTreeState(__spreadValues({
6432
- disabledKeys,
6433
- selectedKeys
6434
- }, props));
6435
- const { menuProps } = useMenu(props, state, ref);
6436
- const { contains } = useFilter({ sensitivity: "base" });
6437
- const [search, setSearch] = React61.useState("");
6438
- const filteredCollection = React61.useMemo(
6439
- () => searchable ? filterCollection(state.collection, search, contains) : state.collection,
6440
- [state.collection, search, contains]
6441
- );
6442
- return /* @__PURE__ */ React61.createElement(DropdownMenu2, {
6443
- minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
6444
- maxWidth: maxWidth !== void 0 ? `${maxWidth}px` : void 0
6445
- }, header, /* @__PURE__ */ React61.createElement(DropdownMenu2.ContentContainer, null, searchable && /* @__PURE__ */ React61.createElement(SearchInput, {
6446
- "aria-label": "search",
6447
- value: search,
6448
- onChange: (e) => setSearch(e.target.value),
6449
- className: tw("mb-5")
6450
- }), filteredCollection.size === 0 && emptyState && /* @__PURE__ */ React61.createElement(DropdownMenu2.EmptyStateContainer, null, emptyState), /* @__PURE__ */ React61.createElement(DropdownMenu2.List, __spreadValues({
6451
- ref
6452
- }, menuProps), Array.from(filteredCollection).map((item) => {
6453
- if (isSectionNode(item)) {
6454
- return /* @__PURE__ */ React61.createElement(SectionWrapper, {
6455
- key: item.key,
6456
- section: item,
6457
- state
6458
- });
6459
- } else if (isItemNode(item)) {
6460
- return /* @__PURE__ */ React61.createElement(ItemWrapper, {
6461
- key: item.key,
6462
- item,
6463
- state
6464
- });
6465
- }
6466
- }))), footer);
6479
+ const { onClick } = props;
6480
+ const { state } = usePopoverContext();
6481
+ const handleClick = (e) => {
6482
+ state.close();
6483
+ onClick == null ? void 0 : onClick(e);
6484
+ };
6485
+ return /* @__PURE__ */ React60.createElement(Component, __spreadProps(__spreadValues({}, props), {
6486
+ onClick: handleClick
6487
+ }));
6488
+ };
6489
+ PopoverButton2.displayName = displayName;
6490
+ return PopoverButton2;
6467
6491
  };
6468
- var ItemWrapper = ({ item, state }) => {
6469
- const ref = React61.useRef(null);
6470
- const { menuItemProps, descriptionProps, isSelected, isFocused, isDisabled } = useMenuItem(
6471
- { key: item.key, closeOnSelect: item.props.closeOnSelect },
6472
- state,
6473
- ref
6474
- );
6475
- const { icon, description, kind = "default" } = item.props;
6476
- return /* @__PURE__ */ React61.createElement(DropdownMenu2.Item, __spreadProps(__spreadValues({
6477
- ref
6478
- }, menuItemProps), {
6479
- kind,
6480
- selected: isSelected,
6481
- highlighted: isFocused,
6482
- disabled: isDisabled,
6483
- icon
6484
- }), item.rendered, description && /* @__PURE__ */ React61.createElement(DropdownMenu2.Description, __spreadValues({
6485
- disabled: isDisabled
6486
- }, descriptionProps), description));
6492
+ var PopoverButton = asPopoverButton(Button, "PopoverButton");
6493
+ Popover2.Button = PopoverButton;
6494
+ var PopoverTriggerWrapper = (_a) => {
6495
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
6496
+ var _a2;
6497
+ const ref = useRef7(null);
6498
+ const trigger = React60.Children.only(children);
6499
+ const { pressProps } = usePress2(__spreadProps(__spreadValues({}, rest), { ref }));
6500
+ return React60.cloneElement(trigger, __spreadProps(__spreadValues({
6501
+ "ref": ref
6502
+ }, mergeProps3(pressProps, trigger.props)), {
6503
+ "aria-controls": (_a2 = rest["aria-controls"]) != null ? _a2 : pressProps["aria-controls"]
6504
+ }));
6487
6505
  };
6488
- var SectionWrapper = ({ section, state }) => {
6489
- const { itemProps, headingProps, groupProps } = useMenuSection({
6490
- "heading": section.rendered,
6491
- "aria-label": section["aria-label"]
6492
- });
6493
- const { separatorProps } = useSeparator({
6494
- elementType: "li"
6495
- });
6496
- return /* @__PURE__ */ React61.createElement(React61.Fragment, null, section.key !== state.collection.getFirstKey() && /* @__PURE__ */ React61.createElement(DropdownMenu2.Separator, __spreadValues({}, separatorProps)), /* @__PURE__ */ React61.createElement(DropdownMenu2.Group, __spreadValues({
6497
- title: section.rendered,
6498
- titleProps: headingProps
6499
- }, itemProps), /* @__PURE__ */ React61.createElement("ul", __spreadValues({}, groupProps), Array.from(section.childNodes).map((node) => /* @__PURE__ */ React61.createElement(ItemWrapper, {
6500
- key: node.key,
6501
- item: node,
6502
- state
6503
- })))));
6506
+
6507
+ // src/molecules/Dropdown/Dropdown.tsx
6508
+ var Dropdown = ({ children, content, placement = "bottom-left" }) => {
6509
+ return /* @__PURE__ */ React61.createElement(Popover2, {
6510
+ type: "menu",
6511
+ placement
6512
+ }, /* @__PURE__ */ React61.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React61.createElement(Popover2.Panel, null, content));
6504
6513
  };
6505
- var extractTriggerAndItems = (children) => {
6506
- const [trigger, items] = React61.Children.toArray(children);
6507
- if (!isComponentType(trigger, MenuTrigger) || !isComponentType(items, MenuItems)) {
6508
- throw new Error("<DropdownMenu> must have <DropdownMenu.Trigger> and <DropdownMenu.Items> defined");
6509
- }
6510
- return [trigger, items];
6514
+ var DropdownMenu3 = ({
6515
+ title,
6516
+ children,
6517
+ contentId,
6518
+ triggerId,
6519
+ setClose = () => void 0
6520
+ }) => {
6521
+ const menuRef = React61.useRef(null);
6522
+ React61.useEffect(() => {
6523
+ const id = setTimeout(() => {
6524
+ var _a, _b, _c;
6525
+ return (_c = (_b = (_a = menuRef.current) == null ? void 0 : _a.children) == null ? void 0 : _b[0]) == null ? void 0 : _c.focus();
6526
+ });
6527
+ return () => clearTimeout(id);
6528
+ }, [menuRef.current]);
6529
+ return /* @__PURE__ */ React61.createElement("div", {
6530
+ style: { minWidth: "250px" },
6531
+ className: tw("py-3 bg-white")
6532
+ }, !!title && /* @__PURE__ */ React61.createElement("div", {
6533
+ className: tw("px-4 py-4 text-left text-grey-100 typography-default-strong")
6534
+ }, title), /* @__PURE__ */ React61.createElement("ol", {
6535
+ role: "menu",
6536
+ ref: menuRef,
6537
+ id: contentId,
6538
+ "aria-labelledby": triggerId
6539
+ }, React61.Children.map(children, (child) => {
6540
+ return React61.cloneElement(child, { setClose });
6541
+ })));
6511
6542
  };
6512
- var getDisabledItemKeys = (children) => {
6513
- const keys = React61.Children.map(children, (child) => {
6514
- var _a, _b;
6515
- if (!child || typeof child === "function") {
6516
- return null;
6517
- }
6518
- if (isComponentType(child, Item4) && child.props.disabled) {
6519
- return (_b = (_a = child.key) == null ? void 0 : _a.toString()) != null ? _b : null;
6543
+ var DropdownItem = (_a) => {
6544
+ var _b = _a, {
6545
+ children,
6546
+ disabled = false,
6547
+ tooltip,
6548
+ tooltipPlacement,
6549
+ color = "default",
6550
+ onSelect,
6551
+ setClose = () => void 0
6552
+ } = _b, props = __objRest(_b, [
6553
+ "children",
6554
+ "disabled",
6555
+ "tooltip",
6556
+ "tooltipPlacement",
6557
+ "color",
6558
+ "onSelect",
6559
+ "setClose"
6560
+ ]);
6561
+ const { state } = usePopoverContext();
6562
+ const handleSelect = () => {
6563
+ onSelect == null ? void 0 : onSelect();
6564
+ state.close();
6565
+ setClose();
6566
+ };
6567
+ const handleKeyDown = (event) => {
6568
+ const target = event.target;
6569
+ const parent = target.parentElement;
6570
+ const first = parent.firstChild;
6571
+ const last = parent.lastChild;
6572
+ const next = target.nextElementSibling;
6573
+ const prev = target.previousElementSibling;
6574
+ if (event.key === "ArrowUp") {
6575
+ prev ? prev.focus() : last.focus();
6576
+ } else if (event.key === "ArrowDown") {
6577
+ next ? next.focus() : first.focus();
6578
+ } else if (event.key === "Tab") {
6579
+ event.preventDefault();
6580
+ event.stopPropagation();
6581
+ } else if (event.key === "Home" || event.key === "PageUp") {
6582
+ first.focus();
6583
+ } else if (event.key === "End" || event.key === "PageDown") {
6584
+ last.focus();
6585
+ } else if (event.key === "Enter") {
6586
+ !disabled && handleSelect();
6520
6587
  }
6521
- if (isComponentType(child, Section)) {
6522
- return getDisabledItemKeys(child.props.children);
6588
+ };
6589
+ const handleClick = (e) => {
6590
+ e.stopPropagation();
6591
+ if (!disabled) {
6592
+ handleSelect();
6523
6593
  }
6524
- return null;
6525
- });
6526
- return keys.flat().filter((key) => key !== null);
6594
+ };
6595
+ const itemContent = /* @__PURE__ */ React61.createElement("div", {
6596
+ className: tw("py-3 px-4")
6597
+ }, children);
6598
+ return /* @__PURE__ */ React61.createElement("li", __spreadProps(__spreadValues({
6599
+ role: "menuitem",
6600
+ tabIndex: -1,
6601
+ onClick: handleClick,
6602
+ onKeyDown: handleKeyDown
6603
+ }, props), {
6604
+ className: tw("typography-small flex items-center focus:ring-0", {
6605
+ "text-grey-70 cursor-pointer hover:bg-grey-0": !disabled,
6606
+ "text-grey-10 cursor-not-allowed": disabled,
6607
+ "text-primary-70 hover:text-primary-80": color === "danger" && !disabled
6608
+ })
6609
+ }), tooltip ? /* @__PURE__ */ React61.createElement(Tooltip, {
6610
+ content: tooltip,
6611
+ placement: tooltipPlacement,
6612
+ inline: false
6613
+ }, /* @__PURE__ */ React61.createElement("div", {
6614
+ tabIndex: 0,
6615
+ className: tw("grow")
6616
+ }, itemContent)) : itemContent);
6527
6617
  };
6618
+ Dropdown.Menu = DropdownMenu3;
6619
+ Dropdown.Item = DropdownItem;
6528
6620
 
6529
6621
  // src/molecules/EmptyState/EmptyState.tsx
6530
6622
  import React63 from "react";
@@ -6740,7 +6832,7 @@ var Link2 = (props) => /* @__PURE__ */ React67.createElement(Link, __spreadValue
6740
6832
 
6741
6833
  // src/molecules/List/List.tsx
6742
6834
  import React68 from "react";
6743
- var List = ({ items, renderItem, container = React68.Fragment }) => {
6835
+ var List2 = ({ items, renderItem, container = React68.Fragment }) => {
6744
6836
  const Component = container;
6745
6837
  return /* @__PURE__ */ React68.createElement(Component, null, items.map(renderItem));
6746
6838
  };
@@ -7065,12 +7157,13 @@ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /*
7065
7157
 
7066
7158
  // src/molecules/Modal/Modal.tsx
7067
7159
  var import_cross5 = __toESM(require_cross());
7068
- var Modal2 = (props) => {
7160
+ var Modal2 = (_a) => {
7161
+ var _b = _a, { closeOnEsc = true } = _b, props = __objRest(_b, ["closeOnEsc"]);
7069
7162
  const { open, onClose, size, portalContainer } = props;
7070
7163
  const ref = React71.useRef(null);
7071
7164
  const state = useOverlayTriggerState4({ isOpen: open, onOpenChange: (isOpen) => !isOpen && onClose() });
7072
7165
  const { modalProps, underlayProps } = useModalOverlay2(
7073
- { isDismissable: true, isKeyboardDismissDisabled: false },
7166
+ { isDismissable: true, isKeyboardDismissDisabled: !closeOnEsc },
7074
7167
  state,
7075
7168
  ref
7076
7169
  );
@@ -7729,12 +7822,140 @@ var NativeSelectSkeleton = () => /* @__PURE__ */ React75.createElement(LabelCont
7729
7822
  NativeSelect.Skeleton = NativeSelectSkeleton;
7730
7823
  NativeSelect.Skeleton.displayName = "NativeSelect.Skeleton";
7731
7824
 
7732
- // src/molecules/PageHeader/PageHeader.tsx
7825
+ // src/molecules/Navigation/Navigation.tsx
7826
+ import React77 from "react";
7827
+
7828
+ // src/atoms/Navigation/Navigation.tsx
7733
7829
  import React76 from "react";
7830
+ var Navigation = (_a) => {
7831
+ var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
7832
+ return /* @__PURE__ */ React76.createElement("nav", {
7833
+ className: classNames(tw("bg-grey-0 h-full"))
7834
+ }, /* @__PURE__ */ React76.createElement("ul", __spreadProps(__spreadValues({}, rest), {
7835
+ className: classNames(tw("flex flex-col h-full"), className),
7836
+ role: "menu"
7837
+ }), children));
7838
+ };
7839
+ var Header = (_a) => {
7840
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
7841
+ return /* @__PURE__ */ React76.createElement("li", __spreadProps(__spreadValues({}, rest), {
7842
+ role: "presentation",
7843
+ className: classNames(tw("px-6 py-5"), className)
7844
+ }));
7845
+ };
7846
+ var Footer = (_a) => {
7847
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
7848
+ return /* @__PURE__ */ React76.createElement("li", __spreadProps(__spreadValues({}, rest), {
7849
+ role: "presentation",
7850
+ className: classNames(tw("px-6 py-5 mt-auto"), className)
7851
+ }));
7852
+ };
7853
+ var Section2 = (_a) => {
7854
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
7855
+ return /* @__PURE__ */ React76.createElement("li", {
7856
+ role: "presentation"
7857
+ }, /* @__PURE__ */ React76.createElement("ul", __spreadProps(__spreadValues({}, rest), {
7858
+ role: "group",
7859
+ className: classNames(tw(" py-5 flex flex-col"), className)
7860
+ })));
7861
+ };
7862
+ var Divider3 = (_a) => {
7863
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
7864
+ return /* @__PURE__ */ React76.createElement("li", __spreadProps(__spreadValues({
7865
+ role: "separator"
7866
+ }, rest), {
7867
+ className: classNames(tw("border-t-2 border-grey-5"), className)
7868
+ }));
7869
+ };
7870
+ var Item5 = (_a) => {
7871
+ var _b = _a, { className, active } = _b, rest = __objRest(_b, ["className", "active"]);
7872
+ return /* @__PURE__ */ React76.createElement("li", {
7873
+ role: "presentation"
7874
+ }, /* @__PURE__ */ React76.createElement("a", __spreadProps(__spreadValues({}, rest), {
7875
+ role: "menuitem",
7876
+ className: classNames(
7877
+ tw("py-3 px-6 hover:bg-grey-5 cursor-pointer flex gap-4 items-center typography-small focusable", {
7878
+ "text-grey-60": !active,
7879
+ "text-primary-80": !!active
7880
+ }),
7881
+ className
7882
+ )
7883
+ })));
7884
+ };
7885
+ Navigation.Header = Header;
7886
+ Navigation.Footer = Footer;
7887
+ Navigation.Section = Section2;
7888
+ Navigation.Item = Item5;
7889
+ Navigation.Divider = Divider3;
7890
+
7891
+ // src/molecules/Navigation/Navigation.tsx
7892
+ var Navigation2 = (props) => /* @__PURE__ */ React77.createElement(Navigation, __spreadValues({}, props));
7893
+ var Item6 = (_a) => {
7894
+ var _b = _a, { children, icon } = _b, rest = __objRest(_b, ["children", "icon"]);
7895
+ return /* @__PURE__ */ React77.createElement(Navigation.Item, __spreadValues({}, rest), icon && /* @__PURE__ */ React77.createElement(InlineIcon, {
7896
+ icon
7897
+ }), children);
7898
+ };
7899
+ Navigation2.Item = Item6;
7900
+ Navigation2.Divider = Navigation.Divider;
7901
+ Navigation2.Footer = Navigation.Footer;
7902
+ Navigation2.Header = Navigation.Header;
7903
+ Navigation2.Section = Navigation.Section;
7904
+
7905
+ // src/molecules/PageHeader/PageHeader.tsx
7906
+ import React79 from "react";
7734
7907
  import castArray3 from "lodash/castArray";
7735
7908
  import omit14 from "lodash/omit";
7736
- var PageHeader = ({
7909
+
7910
+ // src/atoms/PageHeader/PageHeader.tsx
7911
+ import React78 from "react";
7912
+ var PageHeader = (_a) => {
7913
+ var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7914
+ return /* @__PURE__ */ React78.createElement("div", __spreadValues({
7915
+ className: classNames(tw("flex flex-row gap-4 pb-6"), className)
7916
+ }, rest), children);
7917
+ };
7918
+ PageHeader.Container = (_a) => {
7919
+ var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7920
+ return /* @__PURE__ */ React78.createElement("div", __spreadValues({
7921
+ className: classNames(tw("flex flex-col grow gap-0"), className)
7922
+ }, rest), children);
7923
+ };
7924
+ PageHeader.TitleContainer = (_a) => {
7925
+ var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7926
+ return /* @__PURE__ */ React78.createElement("div", __spreadValues({
7927
+ className: classNames(tw("flex flex-col justify-center gap-2"), className)
7928
+ }, rest), children);
7929
+ };
7930
+ PageHeader.Title = (_a) => {
7931
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
7932
+ return /* @__PURE__ */ React78.createElement(Typography2.Heading, __spreadProps(__spreadValues({}, rest), {
7933
+ color: "grey-100"
7934
+ }), children);
7935
+ };
7936
+ PageHeader.Subtitle = (_a) => {
7937
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
7938
+ return /* @__PURE__ */ React78.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
7939
+ color: "grey-70"
7940
+ }), children);
7941
+ };
7942
+ PageHeader.Chips = (_a) => {
7943
+ var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7944
+ return /* @__PURE__ */ React78.createElement("div", __spreadValues({
7945
+ className: classNames(tw("flex gap-3"), className)
7946
+ }, rest), children);
7947
+ };
7948
+ PageHeader.Actions = (_a) => {
7949
+ var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7950
+ return /* @__PURE__ */ React78.createElement("div", __spreadValues({
7951
+ className: classNames(tw("flex flex-row gap-4 self-start"), className)
7952
+ }, rest), children);
7953
+ };
7954
+
7955
+ // src/molecules/PageHeader/PageHeader.tsx
7956
+ var PageHeader2 = ({
7737
7957
  title,
7958
+ subtitle,
7738
7959
  image,
7739
7960
  imageAlt,
7740
7961
  primaryAction,
@@ -7742,48 +7963,32 @@ var PageHeader = ({
7742
7963
  chips = [],
7743
7964
  breadcrumbs
7744
7965
  }) => {
7745
- return /* @__PURE__ */ React76.createElement(Flexbox, {
7746
- direction: "row",
7747
- gap: "4",
7748
- paddingBottom: "6"
7749
- }, /* @__PURE__ */ React76.createElement(Flexbox, {
7750
- className: tw("grow"),
7751
- direction: "column",
7752
- gap: "0"
7753
- }, breadcrumbs && /* @__PURE__ */ React76.createElement(Breadcrumbs, null, breadcrumbs), /* @__PURE__ */ React76.createElement(Flexbox, {
7966
+ return /* @__PURE__ */ React79.createElement(PageHeader, null, /* @__PURE__ */ React79.createElement(PageHeader.Container, null, breadcrumbs && /* @__PURE__ */ React79.createElement(Breadcrumbs, null, breadcrumbs), /* @__PURE__ */ React79.createElement(Flexbox, {
7754
7967
  gap: "5"
7755
- }, image && /* @__PURE__ */ React76.createElement("img", {
7968
+ }, image && /* @__PURE__ */ React79.createElement("img", {
7756
7969
  src: image,
7757
7970
  alt: imageAlt,
7758
7971
  className: tw("w-[56px] h-[56px]")
7759
- }), /* @__PURE__ */ React76.createElement(Flexbox, {
7760
- direction: "column",
7761
- justifyContent: "center"
7762
- }, /* @__PURE__ */ React76.createElement(Typography2.Heading, null, title), chips.length > 0 && /* @__PURE__ */ React76.createElement(Flexbox, {
7763
- gap: "3"
7764
- }, chips.map((chip) => /* @__PURE__ */ React76.createElement(Chip2, {
7972
+ }), /* @__PURE__ */ React79.createElement(PageHeader.TitleContainer, null, /* @__PURE__ */ React79.createElement(PageHeader.Title, null, title), chips.length > 0 && /* @__PURE__ */ React79.createElement(PageHeader.Chips, null, chips.map((chip) => /* @__PURE__ */ React79.createElement(Chip2, {
7765
7973
  key: chip,
7766
7974
  dense: true,
7767
7975
  text: chip
7768
- })))))), (secondaryActions || primaryAction) && /* @__PURE__ */ React76.createElement(Flexbox, {
7769
- gap: "4",
7770
- className: tw("self-start")
7771
- }, secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_a) => {
7976
+ }))), subtitle && /* @__PURE__ */ React79.createElement(PageHeader.Subtitle, null, subtitle)))), (secondaryActions || primaryAction) && /* @__PURE__ */ React79.createElement(PageHeader.Actions, null, secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_a) => {
7772
7977
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
7773
- return /* @__PURE__ */ React76.createElement(SecondaryButton, __spreadValues({
7978
+ return /* @__PURE__ */ React79.createElement(SecondaryButton, __spreadValues({
7774
7979
  key: text
7775
7980
  }, action), text);
7776
- }), primaryAction && /* @__PURE__ */ React76.createElement(PrimaryButton, __spreadValues({
7981
+ }), primaryAction && /* @__PURE__ */ React79.createElement(PrimaryButton, __spreadValues({
7777
7982
  key: primaryAction.text
7778
7983
  }, omit14(primaryAction, "text")), primaryAction.text)));
7779
7984
  };
7780
7985
 
7781
7986
  // src/molecules/Pagination/Pagination.tsx
7782
- import React78 from "react";
7987
+ import React81 from "react";
7783
7988
  import clamp from "lodash/clamp";
7784
7989
 
7785
7990
  // src/molecules/Select/Select.tsx
7786
- import React77, { useRef as useRef12, useState as useState10 } from "react";
7991
+ import React80, { useRef as useRef12, useState as useState10 } from "react";
7787
7992
  import { useSelect } from "downshift";
7788
7993
  import defaults from "lodash/defaults";
7789
7994
  import isArray from "lodash/isArray";
@@ -7799,10 +8004,10 @@ var hasOptionGroups = (val) => {
7799
8004
  };
7800
8005
  var defaultRenderOption = (item, props, { selectedItem }, { getOptionKey, getValue, optionToString = getOptionLabelBuiltin }) => {
7801
8006
  var _a, _b;
7802
- return /* @__PURE__ */ React77.createElement(Select.Item, __spreadValues({
8007
+ return /* @__PURE__ */ React80.createElement(Select.Item, __spreadValues({
7803
8008
  key: (_b = (_a = getOptionKey == null ? void 0 : getOptionKey(item)) != null ? _a : getValue == null ? void 0 : getValue(item)) != null ? _b : optionToString(item),
7804
8009
  selected: item === selectedItem
7805
- }, props), hasIconProperty(item) && /* @__PURE__ */ React77.createElement(InlineIcon, {
8010
+ }, props), hasIconProperty(item) && /* @__PURE__ */ React80.createElement(InlineIcon, {
7806
8011
  icon: item.icon
7807
8012
  }), optionToString(item));
7808
8013
  };
@@ -7921,13 +8126,13 @@ var _SelectBase = (props) => {
7921
8126
  },
7922
8127
  withDefaults
7923
8128
  );
7924
- const renderGroup = (group) => /* @__PURE__ */ React77.createElement(React77.Fragment, {
8129
+ const renderGroup = (group) => /* @__PURE__ */ React80.createElement(React80.Fragment, {
7925
8130
  key: group.label
7926
- }, /* @__PURE__ */ React77.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
7927
- const input = /* @__PURE__ */ React77.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
8131
+ }, /* @__PURE__ */ React80.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
8132
+ const input = /* @__PURE__ */ React80.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
7928
8133
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default",
7929
8134
  tabIndex: 0
7930
- }), /* @__PURE__ */ React77.createElement(Select.Input, __spreadProps(__spreadValues({
8135
+ }), /* @__PURE__ */ React80.createElement(Select.Input, __spreadProps(__spreadValues({
7931
8136
  id,
7932
8137
  name
7933
8138
  }, rest), {
@@ -7939,26 +8144,26 @@ var _SelectBase = (props) => {
7939
8144
  tabIndex: -1,
7940
8145
  onFocus: () => setFocus(true),
7941
8146
  onBlur: () => setFocus(false)
7942
- })), !readOnly && /* @__PURE__ */ React77.createElement(Select.Toggle, {
8147
+ })), !readOnly && /* @__PURE__ */ React80.createElement(Select.Toggle, {
7943
8148
  disabled,
7944
8149
  isOpen,
7945
8150
  tabIndex: -1
7946
8151
  }));
7947
8152
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
7948
- return /* @__PURE__ */ React77.createElement("div", {
8153
+ return /* @__PURE__ */ React80.createElement("div", {
7949
8154
  className: tw("relative")
7950
- }, labelWrapper ? React77.cloneElement(labelWrapper, { children: input }) : input, isOpen && /* @__PURE__ */ React77.createElement(PopoverOverlay, {
8155
+ }, labelWrapper ? React80.cloneElement(labelWrapper, { children: input }) : input, isOpen && /* @__PURE__ */ React80.createElement(PopoverOverlay, {
7951
8156
  state,
7952
8157
  triggerRef: targetRef,
7953
8158
  placement: "bottom-left",
7954
8159
  shouldFlip: true,
7955
8160
  style: { width: (_b = targetRef.current) == null ? void 0 : _b.offsetWidth }
7956
- }, /* @__PURE__ */ React77.createElement(Select.Menu, __spreadValues({
8161
+ }, /* @__PURE__ */ React80.createElement(Select.Menu, __spreadValues({
7957
8162
  ref: menuRef,
7958
8163
  maxHeight
7959
- }, menuProps), options.length === 0 && /* @__PURE__ */ React77.createElement(Select.EmptyStateContainer, null, emptyState), options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), actions.length > 0 && /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(Select.Divider, {
8164
+ }, menuProps), options.length === 0 && /* @__PURE__ */ React80.createElement(Select.EmptyStateContainer, null, emptyState), options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), actions.length > 0 && /* @__PURE__ */ React80.createElement(React80.Fragment, null, /* @__PURE__ */ React80.createElement(Select.Divider, {
7960
8165
  onMouseOver: () => setHighlightedIndex(-1)
7961
- }), actions.map((act, index) => /* @__PURE__ */ React77.createElement(Select.ActionItem, __spreadProps(__spreadValues({
8166
+ }), actions.map((act, index) => /* @__PURE__ */ React80.createElement(Select.ActionItem, __spreadProps(__spreadValues({
7962
8167
  key: `${index}`
7963
8168
  }, act), {
7964
8169
  onMouseOver: () => setHighlightedIndex(-1),
@@ -7968,10 +8173,10 @@ var _SelectBase = (props) => {
7968
8173
  }
7969
8174
  }), act.label))))));
7970
8175
  };
7971
- var SelectBase = (props) => /* @__PURE__ */ React77.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
8176
+ var SelectBase = (props) => /* @__PURE__ */ React80.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
7972
8177
  labelWrapper: void 0
7973
8178
  }));
7974
- var SelectBaseSkeleton = () => /* @__PURE__ */ React77.createElement(Skeleton, {
8179
+ var SelectBaseSkeleton = () => /* @__PURE__ */ React80.createElement(Skeleton, {
7975
8180
  height: 38
7976
8181
  });
7977
8182
  SelectBase.Skeleton = SelectBaseSkeleton;
@@ -7989,19 +8194,19 @@ var Select2 = (_a) => {
7989
8194
  const baseProps = omit15(props, Object.keys(labelProps));
7990
8195
  const legacyError = labelProps.error !== void 0 && labelProps.valid === false;
7991
8196
  const variant = !labelProps.valid || legacyError ? "error" : labelProps.disabled ? "disabled" : "default";
7992
- const label = /* @__PURE__ */ React77.createElement(Label, __spreadValues({
8197
+ const label = /* @__PURE__ */ React80.createElement(Label, __spreadValues({
7993
8198
  id: `${id.current}-label`,
7994
8199
  htmlFor: `${id.current}-input`,
7995
8200
  variant,
7996
8201
  messageId: errorMessageId
7997
8202
  }, labelProps));
7998
- return /* @__PURE__ */ React77.createElement(FormControl, null, /* @__PURE__ */ React77.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
8203
+ return /* @__PURE__ */ React80.createElement(FormControl, null, /* @__PURE__ */ React80.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7999
8204
  id: `${id.current}-input`,
8000
8205
  options,
8001
8206
  disabled: props.disabled,
8002
8207
  valid: props.valid,
8003
8208
  labelWrapper: label
8004
- })), /* @__PURE__ */ React77.createElement(HelperText, {
8209
+ })), /* @__PURE__ */ React80.createElement(HelperText, {
8005
8210
  messageId: errorMessageId,
8006
8211
  error: !labelProps.valid,
8007
8212
  helperText: labelProps.helperText,
@@ -8010,7 +8215,7 @@ var Select2 = (_a) => {
8010
8215
  reserveSpaceForError: labelProps.reserveSpaceForError
8011
8216
  }));
8012
8217
  };
8013
- var SelectSkeleton = () => /* @__PURE__ */ React77.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React77.createElement(SelectBase.Skeleton, null));
8218
+ var SelectSkeleton = () => /* @__PURE__ */ React80.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React80.createElement(SelectBase.Skeleton, null));
8014
8219
  Select2.Skeleton = SelectSkeleton;
8015
8220
  Select2.Skeleton.displayName = "Select.Skeleton";
8016
8221
 
@@ -8029,23 +8234,23 @@ var Pagination = ({
8029
8234
  pageSizes,
8030
8235
  onPageSizeChange
8031
8236
  }) => {
8032
- const [value, setValue] = React78.useState(currentPage);
8033
- React78.useEffect(() => {
8237
+ const [value, setValue] = React81.useState(currentPage);
8238
+ React81.useEffect(() => {
8034
8239
  setValue(currentPage);
8035
8240
  }, [currentPage]);
8036
- return /* @__PURE__ */ React78.createElement(Box, {
8241
+ return /* @__PURE__ */ React81.createElement(Box, {
8037
8242
  className: tw("grid grid-cols-[200px_1fr_200px]"),
8038
8243
  backgroundColor: "grey-0",
8039
8244
  padding: "4"
8040
- }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React78.createElement(Box, {
8245
+ }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React81.createElement(Box, {
8041
8246
  display: "flex",
8042
8247
  alignItems: "center",
8043
8248
  gap: "4"
8044
- }, /* @__PURE__ */ React78.createElement(Typography2.Small, {
8249
+ }, /* @__PURE__ */ React81.createElement(Typography2.Small, {
8045
8250
  color: "grey-50"
8046
- }, "Items per page "), /* @__PURE__ */ React78.createElement("div", {
8251
+ }, "Items per page "), /* @__PURE__ */ React81.createElement("div", {
8047
8252
  className: tw("max-w-[70px]")
8048
- }, /* @__PURE__ */ React78.createElement(SelectBase, {
8253
+ }, /* @__PURE__ */ React81.createElement(SelectBase, {
8049
8254
  options: pageSizes.map((size) => size.toString()),
8050
8255
  value: pageSize.toString(),
8051
8256
  onChange: (size) => {
@@ -8056,26 +8261,26 @@ var Pagination = ({
8056
8261
  }
8057
8262
  }
8058
8263
  }
8059
- }))) : /* @__PURE__ */ React78.createElement("div", null), /* @__PURE__ */ React78.createElement(Box, {
8264
+ }))) : /* @__PURE__ */ React81.createElement("div", null), /* @__PURE__ */ React81.createElement(Box, {
8060
8265
  display: "flex",
8061
8266
  justifyContent: "center",
8062
8267
  alignItems: "center",
8063
8268
  className: tw("grow")
8064
- }, /* @__PURE__ */ React78.createElement(IconButton, {
8269
+ }, /* @__PURE__ */ React81.createElement(IconButton, {
8065
8270
  "aria-label": "First",
8066
8271
  onClick: () => onPageChange(1),
8067
8272
  icon: import_chevronBackward.default,
8068
8273
  disabled: !hasPreviousPage
8069
- }), /* @__PURE__ */ React78.createElement(IconButton, {
8274
+ }), /* @__PURE__ */ React81.createElement(IconButton, {
8070
8275
  "aria-label": "Previous",
8071
8276
  onClick: () => onPageChange(currentPage - 1),
8072
8277
  icon: import_chevronLeft3.default,
8073
8278
  disabled: !hasPreviousPage
8074
- }), /* @__PURE__ */ React78.createElement(Box, {
8279
+ }), /* @__PURE__ */ React81.createElement(Box, {
8075
8280
  paddingX: "4"
8076
- }, /* @__PURE__ */ React78.createElement(Typography2.Small, {
8281
+ }, /* @__PURE__ */ React81.createElement(Typography2.Small, {
8077
8282
  color: "grey-60"
8078
- }, "Page")), /* @__PURE__ */ React78.createElement(InputBase, {
8283
+ }, "Page")), /* @__PURE__ */ React81.createElement(InputBase, {
8079
8284
  className: classNames(tw("text-center max-w-[40px]"), "no-arrows"),
8080
8285
  type: "number",
8081
8286
  min: 1,
@@ -8092,67 +8297,67 @@ var Pagination = ({
8092
8297
  const newPage = !isNaN(numberValue) ? clamp(numberValue, 1, totalPages) : 1;
8093
8298
  onPageChange(newPage);
8094
8299
  }
8095
- }), /* @__PURE__ */ React78.createElement(Box, {
8300
+ }), /* @__PURE__ */ React81.createElement(Box, {
8096
8301
  paddingX: "4"
8097
- }, /* @__PURE__ */ React78.createElement(Typography2.Small, {
8302
+ }, /* @__PURE__ */ React81.createElement(Typography2.Small, {
8098
8303
  color: "grey-60"
8099
- }, "of ", totalPages)), /* @__PURE__ */ React78.createElement(IconButton, {
8304
+ }, "of ", totalPages)), /* @__PURE__ */ React81.createElement(IconButton, {
8100
8305
  "aria-label": "Next",
8101
8306
  onClick: () => onPageChange(currentPage + 1),
8102
8307
  icon: import_chevronRight3.default,
8103
8308
  disabled: !hasNextPage
8104
- }), /* @__PURE__ */ React78.createElement(IconButton, {
8309
+ }), /* @__PURE__ */ React81.createElement(IconButton, {
8105
8310
  "aria-label": "Last",
8106
8311
  onClick: () => onPageChange(totalPages),
8107
8312
  icon: import_chevronForward.default,
8108
8313
  disabled: !hasNextPage
8109
- })), /* @__PURE__ */ React78.createElement("div", null));
8314
+ })), /* @__PURE__ */ React81.createElement("div", null));
8110
8315
  };
8111
8316
 
8112
8317
  // src/molecules/PopoverDialog/PopoverDialog.tsx
8113
- import React80 from "react";
8318
+ import React83 from "react";
8114
8319
  import omit16 from "lodash/omit";
8115
8320
 
8116
8321
  // src/atoms/PopoverDialog/PopoverDialog.tsx
8117
- import React79 from "react";
8118
- var Header = (_a) => {
8322
+ import React82 from "react";
8323
+ var Header2 = (_a) => {
8119
8324
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8120
- return /* @__PURE__ */ React79.createElement("div", __spreadProps(__spreadValues({}, rest), {
8325
+ return /* @__PURE__ */ React82.createElement("div", __spreadProps(__spreadValues({}, rest), {
8121
8326
  className: classNames(tw("p-5 gap-3 flex items-center"), className)
8122
8327
  }), children);
8123
8328
  };
8124
8329
  var Title = (_a) => {
8125
8330
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8126
- return /* @__PURE__ */ React79.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8331
+ return /* @__PURE__ */ React82.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8127
8332
  htmlTag: "h1",
8128
8333
  variant: "small-strong"
8129
8334
  }), children);
8130
8335
  };
8131
8336
  var Body = (_a) => {
8132
8337
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8133
- return /* @__PURE__ */ React79.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8338
+ return /* @__PURE__ */ React82.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8134
8339
  htmlTag: "div",
8135
8340
  variant: "caption",
8136
8341
  className: classNames(tw("px-5 overflow-y-auto"), className)
8137
8342
  }), children);
8138
8343
  };
8139
- var Footer = (_a) => {
8344
+ var Footer2 = (_a) => {
8140
8345
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8141
- return /* @__PURE__ */ React79.createElement("div", __spreadProps(__spreadValues({}, rest), {
8346
+ return /* @__PURE__ */ React82.createElement("div", __spreadProps(__spreadValues({}, rest), {
8142
8347
  className: classNames(tw("p-5"), className)
8143
8348
  }), children);
8144
8349
  };
8145
8350
  var Actions2 = (_a) => {
8146
8351
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8147
- return /* @__PURE__ */ React79.createElement("div", __spreadProps(__spreadValues({}, rest), {
8352
+ return /* @__PURE__ */ React82.createElement("div", __spreadProps(__spreadValues({}, rest), {
8148
8353
  className: classNames(tw("flex gap-4"), className)
8149
8354
  }), children);
8150
8355
  };
8151
8356
  var PopoverDialog = {
8152
- Header,
8357
+ Header: Header2,
8153
8358
  Title,
8154
8359
  Body,
8155
- Footer,
8360
+ Footer: Footer2,
8156
8361
  Actions: Actions2
8157
8362
  };
8158
8363
 
@@ -8160,13 +8365,13 @@ var PopoverDialog = {
8160
8365
  var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction, children }) => {
8161
8366
  const wrapPromptWithBody = (child) => {
8162
8367
  if (isComponentType(child, PopoverDialog2.Prompt)) {
8163
- return /* @__PURE__ */ React80.createElement(Popover2.Panel, {
8368
+ return /* @__PURE__ */ React83.createElement(Popover2.Panel, {
8164
8369
  className: tw("max-w-[300px]")
8165
- }, /* @__PURE__ */ React80.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React80.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React80.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React80.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React80.createElement(Popover2.Button, __spreadValues({
8370
+ }, /* @__PURE__ */ React83.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React83.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React83.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React83.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React83.createElement(Popover2.Button, __spreadValues({
8166
8371
  kind: "secondary-ghost",
8167
8372
  key: secondaryAction.text,
8168
8373
  dense: true
8169
- }, omit16(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React80.createElement(Popover2.Button, __spreadValues({
8374
+ }, omit16(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React83.createElement(Popover2.Button, __spreadValues({
8170
8375
  kind: "ghost",
8171
8376
  key: primaryAction.text,
8172
8377
  dense: true
@@ -8174,15 +8379,15 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
8174
8379
  }
8175
8380
  return child;
8176
8381
  };
8177
- return /* @__PURE__ */ React80.createElement(Popover2, {
8382
+ return /* @__PURE__ */ React83.createElement(Popover2, {
8178
8383
  type: "dialog",
8179
8384
  isOpen: open,
8180
8385
  placement,
8181
8386
  containFocus: true
8182
- }, React80.Children.map(children, wrapPromptWithBody));
8387
+ }, React83.Children.map(children, wrapPromptWithBody));
8183
8388
  };
8184
8389
  PopoverDialog2.Trigger = Popover2.Trigger;
8185
- var Prompt = ({ children }) => /* @__PURE__ */ React80.createElement(PopoverDialog.Body, null, children);
8390
+ var Prompt = ({ children }) => /* @__PURE__ */ React83.createElement(PopoverDialog.Body, null, children);
8186
8391
  Prompt.displayName = "PopoverDialog.Prompt";
8187
8392
  PopoverDialog2.Prompt = Prompt;
8188
8393
 
@@ -8191,14 +8396,14 @@ import { createPortal } from "react-dom";
8191
8396
  var Portal = ({ children, to }) => createPortal(children, to);
8192
8397
 
8193
8398
  // src/molecules/ProgressBar/ProgressBar.tsx
8194
- import React82 from "react";
8399
+ import React85 from "react";
8195
8400
 
8196
8401
  // src/atoms/ProgressBar/ProgressBar.tsx
8197
- import React81 from "react";
8402
+ import React84 from "react";
8198
8403
  import clamp2 from "lodash/clamp";
8199
8404
  var ProgressBar = (_a) => {
8200
8405
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8201
- return /* @__PURE__ */ React81.createElement("div", __spreadProps(__spreadValues({}, rest), {
8406
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8202
8407
  className: classNames(
8203
8408
  tw("relative flex items-center w-full bg-grey-0 h-2 rounded-full overflow-hidden"),
8204
8409
  className
@@ -8214,7 +8419,7 @@ var STATUS_COLORS = {
8214
8419
  ProgressBar.Indicator = (_a) => {
8215
8420
  var _b = _a, { min, max, value, "aria-label": ariaLabel, status, className } = _b, rest = __objRest(_b, ["min", "max", "value", "aria-label", "status", "className"]);
8216
8421
  const completedPercentage = clamp2((value - min) / (max - min) * 100, 0, 100);
8217
- return /* @__PURE__ */ React81.createElement("div", __spreadProps(__spreadValues({}, rest), {
8422
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8218
8423
  className: classNames(
8219
8424
  tw("h-2 rounded-full transition-all ease-in-out delay-150"),
8220
8425
  STATUS_COLORS[status],
@@ -8230,11 +8435,11 @@ ProgressBar.Indicator = (_a) => {
8230
8435
  };
8231
8436
  ProgressBar.Labels = (_a) => {
8232
8437
  var _b = _a, { children, startLabel, endLabel, className } = _b, rest = __objRest(_b, ["children", "startLabel", "endLabel", "className"]);
8233
- return /* @__PURE__ */ React81.createElement("div", {
8438
+ return /* @__PURE__ */ React84.createElement("div", {
8234
8439
  className: classNames(tw("flex flex-row"), className)
8235
- }, /* @__PURE__ */ React81.createElement("span", __spreadProps(__spreadValues({}, rest), {
8440
+ }, /* @__PURE__ */ React84.createElement("span", __spreadProps(__spreadValues({}, rest), {
8236
8441
  className: tw("grow text-grey-70 typography-caption")
8237
- }), startLabel), /* @__PURE__ */ React81.createElement("span", __spreadProps(__spreadValues({}, rest), {
8442
+ }), startLabel), /* @__PURE__ */ React84.createElement("span", __spreadProps(__spreadValues({}, rest), {
8238
8443
  className: tw("grow text-grey-70 typography-caption text-right")
8239
8444
  }), endLabel));
8240
8445
  };
@@ -8252,7 +8457,7 @@ var ProgressBar2 = (props) => {
8252
8457
  if (min > max) {
8253
8458
  throw new Error("`min` value provided to `ProgressBar` is greater than `max` value.");
8254
8459
  }
8255
- const progress = /* @__PURE__ */ React82.createElement(ProgressBar, null, /* @__PURE__ */ React82.createElement(ProgressBar.Indicator, {
8460
+ const progress = /* @__PURE__ */ React85.createElement(ProgressBar, null, /* @__PURE__ */ React85.createElement(ProgressBar.Indicator, {
8256
8461
  status: value === max ? completedStatus : progresStatus,
8257
8462
  min,
8258
8463
  max,
@@ -8262,13 +8467,13 @@ var ProgressBar2 = (props) => {
8262
8467
  if (props.dense) {
8263
8468
  return progress;
8264
8469
  }
8265
- return /* @__PURE__ */ React82.createElement("div", null, progress, /* @__PURE__ */ React82.createElement(ProgressBar.Labels, {
8470
+ return /* @__PURE__ */ React85.createElement("div", null, progress, /* @__PURE__ */ React85.createElement(ProgressBar.Labels, {
8266
8471
  className: tw("py-2"),
8267
8472
  startLabel: props.startLabel,
8268
8473
  endLabel: props.endLabel
8269
8474
  }));
8270
8475
  };
8271
- var ProgressBarSkeleton = () => /* @__PURE__ */ React82.createElement(Skeleton, {
8476
+ var ProgressBarSkeleton = () => /* @__PURE__ */ React85.createElement(Skeleton, {
8272
8477
  height: 4,
8273
8478
  display: "block"
8274
8479
  });
@@ -8276,13 +8481,13 @@ ProgressBar2.Skeleton = ProgressBarSkeleton;
8276
8481
  ProgressBar2.Skeleton.displayName = "ProgressBar.Skeleton";
8277
8482
 
8278
8483
  // src/molecules/RadioButton/RadioButton.tsx
8279
- import React83 from "react";
8280
- var RadioButton2 = React83.forwardRef(
8484
+ import React86 from "react";
8485
+ var RadioButton2 = React86.forwardRef(
8281
8486
  (_a, ref) => {
8282
8487
  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"]);
8283
8488
  var _a2;
8284
8489
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
8285
- return !readOnly || isChecked ? /* @__PURE__ */ React83.createElement(ControlLabel, {
8490
+ return !readOnly || isChecked ? /* @__PURE__ */ React86.createElement(ControlLabel, {
8286
8491
  htmlFor: id,
8287
8492
  label: children,
8288
8493
  "aria-label": ariaLabel,
@@ -8290,7 +8495,7 @@ var RadioButton2 = React83.forwardRef(
8290
8495
  readOnly,
8291
8496
  disabled,
8292
8497
  style: { gap: "0 8px" }
8293
- }, !readOnly && /* @__PURE__ */ React83.createElement(RadioButton, __spreadProps(__spreadValues({
8498
+ }, !readOnly && /* @__PURE__ */ React86.createElement(RadioButton, __spreadProps(__spreadValues({
8294
8499
  id,
8295
8500
  ref,
8296
8501
  name
@@ -8301,12 +8506,12 @@ var RadioButton2 = React83.forwardRef(
8301
8506
  }
8302
8507
  );
8303
8508
  RadioButton2.displayName = "RadioButton";
8304
- var RadioButtonSkeleton = () => /* @__PURE__ */ React83.createElement("div", {
8509
+ var RadioButtonSkeleton = () => /* @__PURE__ */ React86.createElement("div", {
8305
8510
  className: tw("flex gap-3")
8306
- }, /* @__PURE__ */ React83.createElement(Skeleton, {
8511
+ }, /* @__PURE__ */ React86.createElement(Skeleton, {
8307
8512
  height: 20,
8308
8513
  width: 20
8309
- }), /* @__PURE__ */ React83.createElement(Skeleton, {
8514
+ }), /* @__PURE__ */ React86.createElement(Skeleton, {
8310
8515
  height: 20,
8311
8516
  width: 150
8312
8517
  }));
@@ -8314,10 +8519,10 @@ RadioButton2.Skeleton = RadioButtonSkeleton;
8314
8519
  RadioButton2.Skeleton.displayName = "RadioButton.Skeleton";
8315
8520
 
8316
8521
  // src/molecules/RadioButtonGroup/RadioButtonGroup.tsx
8317
- import React84 from "react";
8522
+ import React87 from "react";
8318
8523
  import uniqueId8 from "lodash/uniqueId";
8319
8524
  var isRadioButton = (c) => {
8320
- return React84.isValidElement(c) && c.type === RadioButton2;
8525
+ return React87.isValidElement(c) && c.type === RadioButton2;
8321
8526
  };
8322
8527
  var RadioButtonGroup = (_a) => {
8323
8528
  var _b = _a, {
@@ -8340,7 +8545,7 @@ var RadioButtonGroup = (_a) => {
8340
8545
  "children"
8341
8546
  ]);
8342
8547
  var _a2;
8343
- const [value, setValue] = React84.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
8548
+ const [value, setValue] = React87.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
8344
8549
  const errorMessageId = uniqueId8();
8345
8550
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8346
8551
  const labelControlProps = getLabelControlProps(props);
@@ -8351,14 +8556,14 @@ var RadioButtonGroup = (_a) => {
8351
8556
  setValue(e.target.value);
8352
8557
  onChange == null ? void 0 : onChange(e.target.value);
8353
8558
  };
8354
- const content = React84.Children.map(children, (c) => {
8559
+ const content = React87.Children.map(children, (c) => {
8355
8560
  var _a3, _b2, _c;
8356
8561
  if (!isRadioButton(c)) {
8357
8562
  return null;
8358
8563
  }
8359
8564
  const defaultChecked = defaultValue === void 0 ? void 0 : c.props.value === defaultValue;
8360
8565
  const checked = value === void 0 ? void 0 : c.props.value === value;
8361
- return React84.cloneElement(c, {
8566
+ return React87.cloneElement(c, {
8362
8567
  name,
8363
8568
  defaultChecked: (_a3 = c.props.defaultChecked) != null ? _a3 : defaultChecked,
8364
8569
  checked: (_b2 = c.props.checked) != null ? _b2 : checked,
@@ -8367,11 +8572,11 @@ var RadioButtonGroup = (_a) => {
8367
8572
  readOnly
8368
8573
  });
8369
8574
  });
8370
- return /* @__PURE__ */ React84.createElement(LabelControl, __spreadValues(__spreadValues({
8575
+ return /* @__PURE__ */ React87.createElement(LabelControl, __spreadValues(__spreadValues({
8371
8576
  fieldset: true
8372
- }, labelControlProps), errorProps), cols && /* @__PURE__ */ React84.createElement(InputGroup, {
8577
+ }, labelControlProps), errorProps), cols && /* @__PURE__ */ React87.createElement(InputGroup, {
8373
8578
  cols
8374
- }, content), !cols && /* @__PURE__ */ React84.createElement(Flexbox, {
8579
+ }, content), !cols && /* @__PURE__ */ React87.createElement(Flexbox, {
8375
8580
  direction,
8376
8581
  alignItems: "flex-start",
8377
8582
  colGap: "8",
@@ -8380,12 +8585,12 @@ var RadioButtonGroup = (_a) => {
8380
8585
  }, content));
8381
8586
  };
8382
8587
  var RadioButtonGroupSkeleton = ({ direction = "row", options = 2 }) => {
8383
- return /* @__PURE__ */ React84.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React84.createElement("div", {
8588
+ return /* @__PURE__ */ React87.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React87.createElement("div", {
8384
8589
  className: tw("flex flex-wrap", {
8385
8590
  "flex-row gap-8": direction === "row",
8386
8591
  "flex-col gap-2": direction === "column"
8387
8592
  })
8388
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React84.createElement(RadioButton2.Skeleton, {
8593
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React87.createElement(RadioButton2.Skeleton, {
8389
8594
  key
8390
8595
  }))));
8391
8596
  };
@@ -8393,68 +8598,68 @@ RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
8393
8598
  RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
8394
8599
 
8395
8600
  // src/molecules/Section/Section.tsx
8396
- import React86 from "react";
8601
+ import React89 from "react";
8397
8602
  import castArray4 from "lodash/castArray";
8398
8603
 
8399
8604
  // src/atoms/Section/Section.tsx
8400
- import React85 from "react";
8401
- var Section2 = (_a) => {
8605
+ import React88 from "react";
8606
+ var Section3 = (_a) => {
8402
8607
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8403
- return /* @__PURE__ */ React85.createElement(Box, __spreadValues({
8608
+ return /* @__PURE__ */ React88.createElement(Box, __spreadValues({
8404
8609
  borderColor: "grey-5",
8405
8610
  borderWidth: "1px"
8406
8611
  }, rest), children);
8407
8612
  };
8408
- Section2.Header = (_a) => {
8613
+ Section3.Header = (_a) => {
8409
8614
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8410
- return /* @__PURE__ */ React85.createElement("div", __spreadProps(__spreadValues({}, rest), {
8615
+ return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8411
8616
  className: classNames(tw("px-6 py-5 flex gap-5 justify-between items-center"), className)
8412
8617
  }), children);
8413
8618
  };
8414
- Section2.TitleContainer = (_a) => {
8619
+ Section3.TitleContainer = (_a) => {
8415
8620
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8416
- return /* @__PURE__ */ React85.createElement("div", __spreadProps(__spreadValues({}, rest), {
8621
+ return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8417
8622
  className: classNames(tw("flex flex-col grow gap-2"), className)
8418
8623
  }), children);
8419
8624
  };
8420
- Section2.Title = (_a) => {
8625
+ Section3.Title = (_a) => {
8421
8626
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8422
- return /* @__PURE__ */ React85.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
8627
+ return /* @__PURE__ */ React88.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
8423
8628
  color: "black"
8424
8629
  }), children);
8425
8630
  };
8426
- Section2.Subtitle = (_a) => {
8631
+ Section3.Subtitle = (_a) => {
8427
8632
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8428
- return /* @__PURE__ */ React85.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
8633
+ return /* @__PURE__ */ React88.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
8429
8634
  color: "grey-70"
8430
8635
  }), children);
8431
8636
  };
8432
- Section2.Actions = (_a) => {
8637
+ Section3.Actions = (_a) => {
8433
8638
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8434
- return /* @__PURE__ */ React85.createElement("div", __spreadProps(__spreadValues({}, rest), {
8639
+ return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8435
8640
  className: classNames(tw("flex gap-4 justify-end"), className)
8436
8641
  }), children);
8437
8642
  };
8438
- Section2.Body = (_a) => {
8643
+ Section3.Body = (_a) => {
8439
8644
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8440
- return /* @__PURE__ */ React85.createElement("div", __spreadProps(__spreadValues({}, rest), {
8645
+ return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8441
8646
  className: classNames(tw("p-6"), className)
8442
- }), /* @__PURE__ */ React85.createElement(Typography, {
8647
+ }), /* @__PURE__ */ React88.createElement(Typography, {
8443
8648
  htmlTag: "div",
8444
8649
  color: "grey-70"
8445
8650
  }, children));
8446
8651
  };
8447
8652
 
8448
8653
  // src/molecules/Section/Section.tsx
8449
- var Section3 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React86.createElement(Section2, null, title && /* @__PURE__ */ React86.createElement(React86.Fragment, null, /* @__PURE__ */ React86.createElement(Section2.Header, null, /* @__PURE__ */ React86.createElement(Section2.TitleContainer, null, /* @__PURE__ */ React86.createElement(Section2.Title, null, title), subtitle && /* @__PURE__ */ React86.createElement(Section2.Subtitle, null, subtitle)), /* @__PURE__ */ React86.createElement(Section2.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
8654
+ var Section4 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React89.createElement(Section3, null, title && /* @__PURE__ */ React89.createElement(React89.Fragment, null, /* @__PURE__ */ React89.createElement(Section3.Header, null, /* @__PURE__ */ React89.createElement(Section3.TitleContainer, null, /* @__PURE__ */ React89.createElement(Section3.Title, null, title), subtitle && /* @__PURE__ */ React89.createElement(Section3.Subtitle, null, subtitle)), /* @__PURE__ */ React89.createElement(Section3.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
8450
8655
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
8451
- return /* @__PURE__ */ React86.createElement(SecondaryButton, __spreadValues({
8656
+ return /* @__PURE__ */ React89.createElement(SecondaryButton, __spreadValues({
8452
8657
  key: text
8453
8658
  }, action), text);
8454
- }))), /* @__PURE__ */ React86.createElement(Divider2, null)), /* @__PURE__ */ React86.createElement(Section2.Body, null, children));
8659
+ }))), /* @__PURE__ */ React89.createElement(Divider2, null)), /* @__PURE__ */ React89.createElement(Section3.Body, null, children));
8455
8660
 
8456
8661
  // src/molecules/SegmentedControl/SegmentedControl.tsx
8457
- import React87 from "react";
8662
+ import React90 from "react";
8458
8663
  var SegmentedControl = (_a) => {
8459
8664
  var _b = _a, {
8460
8665
  children,
@@ -8471,7 +8676,7 @@ var SegmentedControl = (_a) => {
8471
8676
  "selected",
8472
8677
  "className"
8473
8678
  ]);
8474
- return /* @__PURE__ */ React87.createElement("button", __spreadProps(__spreadValues({
8679
+ return /* @__PURE__ */ React90.createElement("button", __spreadProps(__spreadValues({
8475
8680
  type: "button"
8476
8681
  }, rest), {
8477
8682
  className: classNames(
@@ -8502,11 +8707,11 @@ var SegmentedControlGroup = (_a) => {
8502
8707
  "border border-grey-20 text-grey-50": variant === "outlined",
8503
8708
  "bg-grey-0": variant === "raised"
8504
8709
  });
8505
- return /* @__PURE__ */ React87.createElement("div", __spreadProps(__spreadValues({}, rest), {
8710
+ return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8506
8711
  className: classNames(classes2, className)
8507
- }), React87.Children.map(
8712
+ }), React90.Children.map(
8508
8713
  children,
8509
- (child) => React87.cloneElement(child, {
8714
+ (child) => React90.cloneElement(child, {
8510
8715
  dense,
8511
8716
  variant,
8512
8717
  onClick: () => onChange(child.props.value),
@@ -8544,10 +8749,10 @@ var getCommonClassNames = (dense, selected) => tw(
8544
8749
  );
8545
8750
 
8546
8751
  // src/molecules/Spacing/Spacing.tsx
8547
- import React88 from "react";
8752
+ import React91 from "react";
8548
8753
  var Spacing = (_a) => {
8549
8754
  var _b = _a, { gap, row } = _b, rest = __objRest(_b, ["gap", "row"]);
8550
- return /* @__PURE__ */ React88.createElement(Box, __spreadProps(__spreadValues({}, rest), {
8755
+ return /* @__PURE__ */ React91.createElement(Box, __spreadProps(__spreadValues({}, rest), {
8551
8756
  display: "flex",
8552
8757
  flexDirection: row ? "row" : "column",
8553
8758
  gap
@@ -8555,14 +8760,14 @@ var Spacing = (_a) => {
8555
8760
  };
8556
8761
 
8557
8762
  // src/molecules/Stepper/Stepper.tsx
8558
- import React90 from "react";
8763
+ import React93 from "react";
8559
8764
 
8560
8765
  // src/atoms/Stepper/Stepper.tsx
8561
- import React89 from "react";
8766
+ import React92 from "react";
8562
8767
  var import_tick5 = __toESM(require_tick());
8563
8768
  var Stepper = (_a) => {
8564
8769
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8565
- return /* @__PURE__ */ React89.createElement("div", __spreadProps(__spreadValues({}, rest), {
8770
+ return /* @__PURE__ */ React92.createElement("div", __spreadProps(__spreadValues({}, rest), {
8566
8771
  className: classNames(className)
8567
8772
  }));
8568
8773
  };
@@ -8576,7 +8781,7 @@ var ConnectorContainer = (_a) => {
8576
8781
  "completed",
8577
8782
  "dense"
8578
8783
  ]);
8579
- return /* @__PURE__ */ React89.createElement("div", __spreadProps(__spreadValues({}, rest), {
8784
+ return /* @__PURE__ */ React92.createElement("div", __spreadProps(__spreadValues({}, rest), {
8580
8785
  className: classNames(
8581
8786
  tw("absolute w-full -left-1/2", {
8582
8787
  "top-[3px] px-[14px]": Boolean(dense),
@@ -8588,7 +8793,7 @@ var ConnectorContainer = (_a) => {
8588
8793
  };
8589
8794
  var Connector = (_a) => {
8590
8795
  var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
8591
- return /* @__PURE__ */ React89.createElement("div", __spreadProps(__spreadValues({}, rest), {
8796
+ return /* @__PURE__ */ React92.createElement("div", __spreadProps(__spreadValues({}, rest), {
8592
8797
  className: classNames(
8593
8798
  tw("w-full", {
8594
8799
  "bg-grey-20": !completed,
@@ -8602,7 +8807,7 @@ var Connector = (_a) => {
8602
8807
  };
8603
8808
  var Step = (_a) => {
8604
8809
  var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
8605
- return /* @__PURE__ */ React89.createElement("div", __spreadProps(__spreadValues({}, rest), {
8810
+ return /* @__PURE__ */ React92.createElement("div", __spreadProps(__spreadValues({}, rest), {
8606
8811
  className: classNames(
8607
8812
  tw("flex flex-col items-center text-grey-90 relative text-center", {
8608
8813
  "text-grey-20": state === "inactive"
@@ -8623,13 +8828,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
8623
8828
  });
8624
8829
  var Indicator = (_a) => {
8625
8830
  var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
8626
- return /* @__PURE__ */ React89.createElement("div", __spreadProps(__spreadValues({}, rest), {
8831
+ return /* @__PURE__ */ React92.createElement("div", __spreadProps(__spreadValues({}, rest), {
8627
8832
  className: classNames(
8628
8833
  tw("rounded-full flex justify-center items-center mx-2 mb-3"),
8629
8834
  dense ? getDenseClassNames(state) : getClassNames(state),
8630
8835
  className
8631
8836
  )
8632
- }), state === "completed" ? /* @__PURE__ */ React89.createElement(InlineIcon, {
8837
+ }), state === "completed" ? /* @__PURE__ */ React92.createElement(InlineIcon, {
8633
8838
  icon: import_tick5.default
8634
8839
  }) : dense ? null : children);
8635
8840
  };
@@ -8640,46 +8845,47 @@ Stepper.ConnectorContainer = ConnectorContainer;
8640
8845
 
8641
8846
  // src/molecules/Stepper/Stepper.tsx
8642
8847
  var Stepper2 = ({ children, activeIndex, dense }) => {
8643
- const steps = React90.Children.count(children);
8644
- return /* @__PURE__ */ React90.createElement(Stepper, {
8848
+ const steps = React93.Children.count(children);
8849
+ return /* @__PURE__ */ React93.createElement(Stepper, {
8645
8850
  role: "list"
8646
- }, /* @__PURE__ */ React90.createElement(Template, {
8851
+ }, /* @__PURE__ */ React93.createElement(Template, {
8647
8852
  columns: steps
8648
- }, React90.Children.map(children, (child, index) => {
8853
+ }, React93.Children.map(children, (child, index) => {
8649
8854
  if (!isComponentType(child, Step2)) {
8650
8855
  return new Error("<Stepper> can only have <Stepper.Step> components as children");
8651
8856
  } else {
8652
8857
  const state = index > activeIndex ? "inactive" : index === activeIndex ? "active" : "completed";
8653
- return /* @__PURE__ */ React90.createElement(Stepper.Step, {
8858
+ return /* @__PURE__ */ React93.createElement(Stepper.Step, {
8654
8859
  state,
8655
8860
  "aria-current": state === "active" ? "step" : false,
8656
8861
  role: "listitem"
8657
- }, index > 0 && index <= steps && /* @__PURE__ */ React90.createElement(Stepper.ConnectorContainer, {
8862
+ }, index > 0 && index <= steps && /* @__PURE__ */ React93.createElement(Stepper.ConnectorContainer, {
8658
8863
  dense
8659
- }, /* @__PURE__ */ React90.createElement(Stepper.ConnectorContainer.Connector, {
8864
+ }, /* @__PURE__ */ React93.createElement(Stepper.ConnectorContainer.Connector, {
8660
8865
  completed: state === "completed" || state === "active"
8661
- })), /* @__PURE__ */ React90.createElement(Stepper.Step.Indicator, {
8866
+ })), /* @__PURE__ */ React93.createElement(Stepper.Step.Indicator, {
8662
8867
  state,
8663
8868
  dense
8664
8869
  }, index + 1), child.props.children);
8665
8870
  }
8666
8871
  })));
8667
8872
  };
8873
+ Stepper2.displayName = "Stepper";
8668
8874
  var Step2 = () => null;
8669
8875
  Step2.displayName = "Stepper.Step";
8670
8876
  Stepper2.Step = Step2;
8671
8877
 
8672
8878
  // src/molecules/Switch/Switch.tsx
8673
- import React92 from "react";
8879
+ import React95 from "react";
8674
8880
 
8675
8881
  // src/atoms/Switch/Switch.tsx
8676
- import React91 from "react";
8677
- var Switch = React91.forwardRef(
8882
+ import React94 from "react";
8883
+ var Switch = React94.forwardRef(
8678
8884
  (_a, ref) => {
8679
8885
  var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
8680
- return /* @__PURE__ */ React91.createElement("span", {
8886
+ return /* @__PURE__ */ React94.createElement("span", {
8681
8887
  className: tw("relative inline-flex justify-center items-center self-center group")
8682
- }, /* @__PURE__ */ React91.createElement("input", __spreadProps(__spreadValues({
8888
+ }, /* @__PURE__ */ React94.createElement("input", __spreadProps(__spreadValues({
8683
8889
  id,
8684
8890
  ref,
8685
8891
  type: "checkbox",
@@ -8698,7 +8904,7 @@ var Switch = React91.forwardRef(
8698
8904
  ),
8699
8905
  readOnly,
8700
8906
  disabled
8701
- })), /* @__PURE__ */ React91.createElement("span", {
8907
+ })), /* @__PURE__ */ React94.createElement("span", {
8702
8908
  className: tw(
8703
8909
  "pointer-events-none rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
8704
8910
  "bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
@@ -8711,12 +8917,12 @@ var Switch = React91.forwardRef(
8711
8917
  );
8712
8918
 
8713
8919
  // src/molecules/Switch/Switch.tsx
8714
- var Switch2 = React92.forwardRef(
8920
+ var Switch2 = React95.forwardRef(
8715
8921
  (_a, ref) => {
8716
8922
  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"]);
8717
8923
  var _a2;
8718
8924
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
8719
- return !readOnly || isChecked ? /* @__PURE__ */ React92.createElement(ControlLabel, {
8925
+ return !readOnly || isChecked ? /* @__PURE__ */ React95.createElement(ControlLabel, {
8720
8926
  htmlFor: id,
8721
8927
  label: children,
8722
8928
  "aria-label": ariaLabel,
@@ -8724,7 +8930,7 @@ var Switch2 = React92.forwardRef(
8724
8930
  readOnly,
8725
8931
  disabled,
8726
8932
  style: { gap: "0 8px" }
8727
- }, !readOnly && /* @__PURE__ */ React92.createElement(Switch, __spreadProps(__spreadValues({
8933
+ }, !readOnly && /* @__PURE__ */ React95.createElement(Switch, __spreadProps(__spreadValues({
8728
8934
  id,
8729
8935
  ref,
8730
8936
  name
@@ -8735,12 +8941,12 @@ var Switch2 = React92.forwardRef(
8735
8941
  }
8736
8942
  );
8737
8943
  Switch2.displayName = "Switch";
8738
- var SwitchSkeleton = () => /* @__PURE__ */ React92.createElement("div", {
8944
+ var SwitchSkeleton = () => /* @__PURE__ */ React95.createElement("div", {
8739
8945
  className: tw("flex gap-3")
8740
- }, /* @__PURE__ */ React92.createElement(Skeleton, {
8946
+ }, /* @__PURE__ */ React95.createElement(Skeleton, {
8741
8947
  height: 20,
8742
8948
  width: 35
8743
- }), /* @__PURE__ */ React92.createElement(Skeleton, {
8949
+ }), /* @__PURE__ */ React95.createElement(Skeleton, {
8744
8950
  height: 20,
8745
8951
  width: 150
8746
8952
  }));
@@ -8748,7 +8954,7 @@ Switch2.Skeleton = SwitchSkeleton;
8748
8954
  Switch2.Skeleton.displayName = "Switch.Skeleton ";
8749
8955
 
8750
8956
  // src/molecules/SwitchGroup/SwitchGroup.tsx
8751
- import React93, { useState as useState11 } from "react";
8957
+ import React96, { useState as useState11 } from "react";
8752
8958
  import uniqueId9 from "lodash/uniqueId";
8753
8959
  var SwitchGroup = (_a) => {
8754
8960
  var _b = _a, {
@@ -8780,11 +8986,11 @@ var SwitchGroup = (_a) => {
8780
8986
  setSelectedItems(updated);
8781
8987
  onChange == null ? void 0 : onChange(updated);
8782
8988
  };
8783
- return /* @__PURE__ */ React93.createElement(LabelControl, __spreadValues(__spreadValues({
8989
+ return /* @__PURE__ */ React96.createElement(LabelControl, __spreadValues(__spreadValues({
8784
8990
  fieldset: true
8785
- }, labelControlProps), errorProps), /* @__PURE__ */ React93.createElement(InputGroup, {
8991
+ }, labelControlProps), errorProps), /* @__PURE__ */ React96.createElement(InputGroup, {
8786
8992
  cols
8787
- }, React93.Children.map(children, (c) => {
8993
+ }, React96.Children.map(children, (c) => {
8788
8994
  var _a3, _b2, _c, _d;
8789
8995
  if (!isComponentType(c, Switch2)) {
8790
8996
  return null;
@@ -8792,7 +8998,7 @@ var SwitchGroup = (_a) => {
8792
8998
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
8793
8999
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
8794
9000
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
8795
- return React93.cloneElement(c, {
9001
+ return React96.cloneElement(c, {
8796
9002
  defaultChecked: (_b2 = c.props.defaultChecked) != null ? _b2 : defaultChecked,
8797
9003
  checked: (_c = c.props.checked) != null ? _c : checked,
8798
9004
  onChange: (_d = c.props.onChange) != null ? _d : handleChange,
@@ -8802,9 +9008,9 @@ var SwitchGroup = (_a) => {
8802
9008
  })));
8803
9009
  };
8804
9010
  var SwitchGroupSkeleton = ({ options = 2 }) => {
8805
- return /* @__PURE__ */ React93.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React93.createElement("div", {
9011
+ return /* @__PURE__ */ React96.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React96.createElement("div", {
8806
9012
  className: tw("flex flex-wrap flex-col gap-2")
8807
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React93.createElement(Switch2.Skeleton, {
9013
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React96.createElement(Switch2.Skeleton, {
8808
9014
  key
8809
9015
  }))));
8810
9016
  };
@@ -8812,10 +9018,10 @@ SwitchGroup.Skeleton = SwitchGroupSkeleton;
8812
9018
  SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
8813
9019
 
8814
9020
  // src/molecules/TagLabel/TagLabel.tsx
8815
- import React94 from "react";
9021
+ import React97 from "react";
8816
9022
  var TagLabel = (_a) => {
8817
9023
  var _b = _a, { title, dense = false } = _b, rest = __objRest(_b, ["title", "dense"]);
8818
- return /* @__PURE__ */ React94.createElement("span", __spreadProps(__spreadValues({}, rest), {
9024
+ return /* @__PURE__ */ React97.createElement("span", __spreadProps(__spreadValues({}, rest), {
8819
9025
  className: tw("rounded-full text-white bg-primary-70", {
8820
9026
  "py-2 px-4 typography-caption": !dense,
8821
9027
  "py-2 px-3 typography-caption-small": dense
@@ -8824,14 +9030,14 @@ var TagLabel = (_a) => {
8824
9030
  };
8825
9031
 
8826
9032
  // src/molecules/Textarea/Textarea.tsx
8827
- import React95, { useRef as useRef13, useState as useState12 } from "react";
9033
+ import React98, { useRef as useRef13, useState as useState12 } from "react";
8828
9034
  import omit17 from "lodash/omit";
8829
9035
  import toString2 from "lodash/toString";
8830
9036
  import uniqueId10 from "lodash/uniqueId";
8831
- var TextareaBase = React95.forwardRef(
9037
+ var TextareaBase = React98.forwardRef(
8832
9038
  (_a, ref) => {
8833
9039
  var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
8834
- return /* @__PURE__ */ React95.createElement("textarea", __spreadProps(__spreadValues({
9040
+ return /* @__PURE__ */ React98.createElement("textarea", __spreadProps(__spreadValues({
8835
9041
  ref
8836
9042
  }, props), {
8837
9043
  readOnly,
@@ -8839,10 +9045,10 @@ var TextareaBase = React95.forwardRef(
8839
9045
  }));
8840
9046
  }
8841
9047
  );
8842
- TextareaBase.Skeleton = () => /* @__PURE__ */ React95.createElement(Skeleton, {
9048
+ TextareaBase.Skeleton = () => /* @__PURE__ */ React98.createElement(Skeleton, {
8843
9049
  height: 58
8844
9050
  });
8845
- var Textarea = React95.forwardRef((props, ref) => {
9051
+ var Textarea = React98.forwardRef((props, ref) => {
8846
9052
  var _a, _b, _c;
8847
9053
  const [value, setValue] = useState12((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
8848
9054
  const id = useRef13((_c = props.id) != null ? _c : `textarea-${uniqueId10()}`);
@@ -8850,12 +9056,12 @@ var Textarea = React95.forwardRef((props, ref) => {
8850
9056
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8851
9057
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
8852
9058
  const baseProps = omit17(props, Object.keys(labelControlProps));
8853
- return /* @__PURE__ */ React95.createElement(LabelControl, __spreadValues({
9059
+ return /* @__PURE__ */ React98.createElement(LabelControl, __spreadValues({
8854
9060
  id: `${id.current}-label`,
8855
9061
  htmlFor: id.current,
8856
9062
  messageId: errorMessageId,
8857
9063
  length: value !== void 0 ? toString2(value).length : void 0
8858
- }, labelControlProps), /* @__PURE__ */ React95.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
9064
+ }, labelControlProps), /* @__PURE__ */ React98.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
8859
9065
  ref
8860
9066
  }, baseProps), errorProps), {
8861
9067
  id: id.current,
@@ -8872,48 +9078,48 @@ var Textarea = React95.forwardRef((props, ref) => {
8872
9078
  })));
8873
9079
  });
8874
9080
  Textarea.displayName = "Textarea";
8875
- var TextAreaSkeleton = () => /* @__PURE__ */ React95.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React95.createElement(TextareaBase.Skeleton, null));
9081
+ var TextAreaSkeleton = () => /* @__PURE__ */ React98.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React98.createElement(TextareaBase.Skeleton, null));
8876
9082
  Textarea.Skeleton = TextAreaSkeleton;
8877
9083
  Textarea.Skeleton.displayName = "Textarea.Skeleton";
8878
9084
 
8879
9085
  // src/molecules/Timeline/Timeline.tsx
8880
- import React97 from "react";
9086
+ import React100 from "react";
8881
9087
 
8882
9088
  // src/atoms/Timeline/Timeline.tsx
8883
- import React96 from "react";
9089
+ import React99 from "react";
8884
9090
  var Timeline = (_a) => {
8885
9091
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8886
- return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
9092
+ return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
8887
9093
  className: classNames(tw("grid grid-cols-[16px_1fr] gap-x-4"), className)
8888
9094
  }));
8889
9095
  };
8890
9096
  var Content2 = (_a) => {
8891
9097
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8892
- return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
9098
+ return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
8893
9099
  className: classNames(tw("pb-6"), className)
8894
9100
  }));
8895
9101
  };
8896
9102
  var Separator2 = (_a) => {
8897
9103
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8898
- return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
9104
+ return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
8899
9105
  className: classNames(tw("flex items-center justify-center h-5 w-5"), className)
8900
9106
  }));
8901
9107
  };
8902
9108
  var LineContainer = (_a) => {
8903
9109
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8904
- return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
9110
+ return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
8905
9111
  className: classNames(tw("flex justify-center py-1"), className)
8906
9112
  }));
8907
9113
  };
8908
9114
  var Line = (_a) => {
8909
9115
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8910
- return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
9116
+ return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
8911
9117
  className: classNames(tw("w-1 bg-grey-5 h-full justify-self-center"), className)
8912
9118
  }));
8913
9119
  };
8914
9120
  var Dot = (_a) => {
8915
9121
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8916
- return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
9122
+ return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
8917
9123
  className: classNames(tw("bg-grey-30 h-[6px] w-[6px] rounded"), className)
8918
9124
  }));
8919
9125
  };
@@ -8928,52 +9134,52 @@ var import_error4 = __toESM(require_error());
8928
9134
  var import_time = __toESM(require_time());
8929
9135
  var import_warningSign4 = __toESM(require_warningSign());
8930
9136
  var TimelineItem = () => null;
8931
- var Timeline2 = ({ children }) => /* @__PURE__ */ React97.createElement("div", null, React97.Children.map(children, (item) => {
9137
+ var Timeline2 = ({ children }) => /* @__PURE__ */ React100.createElement("div", null, React100.Children.map(children, (item) => {
8932
9138
  if (!isComponentType(item, TimelineItem)) {
8933
9139
  throw new Error("<Timeline> can only have <Timeline.Item> components as children");
8934
9140
  } else {
8935
9141
  const { props, key } = item;
8936
- return /* @__PURE__ */ React97.createElement(Timeline, {
9142
+ return /* @__PURE__ */ React100.createElement(Timeline, {
8937
9143
  key: key != null ? key : props.title
8938
- }, /* @__PURE__ */ React97.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React97.createElement(Icon, {
9144
+ }, /* @__PURE__ */ React100.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React100.createElement(Icon, {
8939
9145
  icon: import_error4.default,
8940
9146
  color: "error-30"
8941
- }) : props.variant === "warning" ? /* @__PURE__ */ React97.createElement(Icon, {
9147
+ }) : props.variant === "warning" ? /* @__PURE__ */ React100.createElement(Icon, {
8942
9148
  icon: import_warningSign4.default,
8943
9149
  color: "warning-30"
8944
- }) : props.variant === "info" ? /* @__PURE__ */ React97.createElement(Icon, {
9150
+ }) : props.variant === "info" ? /* @__PURE__ */ React100.createElement(Icon, {
8945
9151
  icon: import_time.default,
8946
9152
  color: "info-30"
8947
- }) : /* @__PURE__ */ React97.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React97.createElement(Typography2.Caption, {
9153
+ }) : /* @__PURE__ */ React100.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React100.createElement(Typography2.Caption, {
8948
9154
  color: "grey-50"
8949
- }, props.title), /* @__PURE__ */ React97.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React97.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React97.createElement(Timeline.Content, null, /* @__PURE__ */ React97.createElement(Typography2.Small, null, props.children)));
9155
+ }, props.title), /* @__PURE__ */ React100.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React100.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React100.createElement(Timeline.Content, null, /* @__PURE__ */ React100.createElement(Typography2.Small, null, props.children)));
8950
9156
  }
8951
9157
  }));
8952
- var TimelineItemSkeleton = () => /* @__PURE__ */ React97.createElement(Timeline, null, /* @__PURE__ */ React97.createElement(Timeline.Separator, null, /* @__PURE__ */ React97.createElement(Skeleton, {
9158
+ var TimelineItemSkeleton = () => /* @__PURE__ */ React100.createElement(Timeline, null, /* @__PURE__ */ React100.createElement(Timeline.Separator, null, /* @__PURE__ */ React100.createElement(Skeleton, {
8953
9159
  width: 6,
8954
9160
  height: 6,
8955
9161
  rounded: true
8956
- })), /* @__PURE__ */ React97.createElement(Skeleton, {
9162
+ })), /* @__PURE__ */ React100.createElement(Skeleton, {
8957
9163
  height: 12,
8958
9164
  width: 120
8959
- }), /* @__PURE__ */ React97.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React97.createElement(Skeleton, {
9165
+ }), /* @__PURE__ */ React100.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React100.createElement(Skeleton, {
8960
9166
  width: 2,
8961
9167
  height: "100%"
8962
- })), /* @__PURE__ */ React97.createElement(Timeline.Content, null, /* @__PURE__ */ React97.createElement(Box, {
9168
+ })), /* @__PURE__ */ React100.createElement(Timeline.Content, null, /* @__PURE__ */ React100.createElement(Box, {
8963
9169
  display: "flex",
8964
9170
  flexDirection: "column",
8965
9171
  gap: "3"
8966
- }, /* @__PURE__ */ React97.createElement(Skeleton, {
9172
+ }, /* @__PURE__ */ React100.createElement(Skeleton, {
8967
9173
  height: 32,
8968
9174
  width: "100%"
8969
- }), /* @__PURE__ */ React97.createElement(Skeleton, {
9175
+ }), /* @__PURE__ */ React100.createElement(Skeleton, {
8970
9176
  height: 32,
8971
9177
  width: "73%"
8972
- }), /* @__PURE__ */ React97.createElement(Skeleton, {
9178
+ }), /* @__PURE__ */ React100.createElement(Skeleton, {
8973
9179
  height: 32,
8974
9180
  width: "80%"
8975
9181
  }))));
8976
- var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React97.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React97.createElement(TimelineItemSkeleton, {
9182
+ var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React100.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React100.createElement(TimelineItemSkeleton, {
8977
9183
  key
8978
9184
  })));
8979
9185
  Timeline2.Item = TimelineItem;
@@ -8981,9 +9187,9 @@ Timeline2.Skeleton = TimelineSkeleton;
8981
9187
  Timeline2.Skeleton.displayName = "Timeline.Skeleton";
8982
9188
 
8983
9189
  // src/utils/table/useTableSelect.ts
8984
- import React98 from "react";
9190
+ import React101 from "react";
8985
9191
  var useTableSelect = (data, { key }) => {
8986
- const [selected, setSelected] = React98.useState([]);
9192
+ const [selected, setSelected] = React101.useState([]);
8987
9193
  const allSelected = selected.length === data.length;
8988
9194
  const isSelected = (dot) => selected.includes(dot[key]);
8989
9195
  const selectAll = () => setSelected(data.map((dot) => dot[key]));
@@ -9193,7 +9399,7 @@ export {
9193
9399
  Divider2 as Divider,
9194
9400
  Dropdown,
9195
9401
  DropdownButton,
9196
- DropdownMenu3 as DropdownMenu,
9402
+ DropdownMenu2 as DropdownMenu,
9197
9403
  Element,
9198
9404
  EmptyState,
9199
9405
  EmptyStateLayout,
@@ -9215,7 +9421,7 @@ export {
9215
9421
  LabelControl,
9216
9422
  LineClamp2 as LineClamp,
9217
9423
  Link2 as Link,
9218
- List,
9424
+ List2 as List,
9219
9425
  ListItem,
9220
9426
  Modal2 as Modal,
9221
9427
  ModalTab,
@@ -9227,9 +9433,10 @@ export {
9227
9433
  MultiSelectBase,
9228
9434
  NativeSelect,
9229
9435
  NativeSelectBase,
9436
+ Navigation2 as Navigation,
9230
9437
  OneLineBanner,
9231
9438
  Option,
9232
- PageHeader,
9439
+ PageHeader2 as PageHeader,
9233
9440
  Pagination,
9234
9441
  Popover2 as Popover,
9235
9442
  PopoverDialog2 as PopoverDialog,
@@ -9244,7 +9451,7 @@ export {
9244
9451
  SecondaryButton,
9245
9452
  SecondaryDropdownButton,
9246
9453
  SecondaryGhostButton,
9247
- Section3 as Section,
9454
+ Section4 as Section,
9248
9455
  SegmentedControl,
9249
9456
  SegmentedControlGroup,
9250
9457
  Select2 as Select,