@aivenio/aquarium 1.62.0 → 1.64.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.
package/dist/system.mjs CHANGED
@@ -9380,6 +9380,7 @@ var ComboboxBase = (_a) => {
9380
9380
  createOption,
9381
9381
  renderOption = (opt) => itemToString(opt),
9382
9382
  isOptionDisabled = isOptionDisabledBuiltin,
9383
+ getOptionKey,
9383
9384
  defaultValue,
9384
9385
  value,
9385
9386
  onChange,
@@ -9401,6 +9402,7 @@ var ComboboxBase = (_a) => {
9401
9402
  "createOption",
9402
9403
  "renderOption",
9403
9404
  "isOptionDisabled",
9405
+ "getOptionKey",
9404
9406
  "defaultValue",
9405
9407
  "value",
9406
9408
  "onChange",
@@ -9522,11 +9524,14 @@ var ComboboxBase = (_a) => {
9522
9524
  style: { width: (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth }
9523
9525
  }, /* @__PURE__ */ React51.createElement(Select.Menu, __spreadValues({
9524
9526
  maxHeight
9525
- }, menuProps), hasNoResults && /* @__PURE__ */ React51.createElement(Select.NoResults, null, emptyState), inputItems.map((item, index) => /* @__PURE__ */ React51.createElement(Select.Item, __spreadValues({
9526
- key: itemToString(item),
9527
- selected: item === selectedItem,
9528
- highlighted: index === highlightedIndex || item === selectedItem
9529
- }, getItemProps({ item, index })), renderOption(item))))));
9527
+ }, menuProps), hasNoResults && /* @__PURE__ */ React51.createElement(Select.NoResults, null, emptyState), inputItems.map((item, index) => {
9528
+ var _a3;
9529
+ return /* @__PURE__ */ React51.createElement(Select.Item, __spreadValues({
9530
+ key: (_a3 = getOptionKey == null ? void 0 : getOptionKey(item)) != null ? _a3 : itemToString(item),
9531
+ selected: item === selectedItem,
9532
+ highlighted: index === highlightedIndex || item === selectedItem
9533
+ }, getItemProps({ item, index })), renderOption(item));
9534
+ }))));
9530
9535
  };
9531
9536
  var ComboboxBaseSkeleton = () => /* @__PURE__ */ React51.createElement(Skeleton, {
9532
9537
  height: 38
@@ -9586,6 +9591,7 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React52.crea
9586
9591
  // src/molecules/DataList/DataList.tsx
9587
9592
  import React71 from "react";
9588
9593
  import { useControlledState } from "@react-stately/utils";
9594
+ import castArray2 from "lodash/castArray";
9589
9595
  import compact from "lodash/compact";
9590
9596
  import groupBy2 from "lodash/groupBy";
9591
9597
  import isArray3 from "lodash/isArray";
@@ -11265,9 +11271,17 @@ var useDataListContext = () => {
11265
11271
  // src/molecules/DataList/DataListGroup.tsx
11266
11272
  import React68 from "react";
11267
11273
  import isFunction2 from "lodash/isFunction";
11274
+
11275
+ // src/molecules/DataList/utils.ts
11276
+ var flattenRows = (rows) => areRowsGrouped(rows) ? Object.values(rows).flatMap(flattenRows) : rows;
11277
+
11278
+ // src/molecules/DataList/DataListGroup.tsx
11268
11279
  var GAP = 8;
11269
11280
  var INDENTATION = 28;
11270
11281
  var sortGroupKeys = (groupKeys) => [...groupKeys].sort((a) => a === "undefined" ? -1 : 1);
11282
+ var getDefaultRowCheckboxLabel = () => "Select row";
11283
+ var getDefaultGroupCheckboxLabel = (key) => `Select ${key}`;
11284
+ var renderDefaultGroupName = (key) => /* @__PURE__ */ React68.createElement(React68.Fragment, null, "Group: ", /* @__PURE__ */ React68.createElement("b", null, key));
11271
11285
  var DataListGroup = (_a) => {
11272
11286
  var _b = _a, {
11273
11287
  groups,
@@ -11281,12 +11295,18 @@ var DataListGroup = (_a) => {
11281
11295
  disabled,
11282
11296
  expandedGroupIds,
11283
11297
  getGroupRow,
11298
+ renderGroupName = renderDefaultGroupName,
11284
11299
  menu,
11285
11300
  menuAriaLabel,
11286
11301
  onAction,
11287
11302
  onGroupToggled,
11288
11303
  onMenuOpenChange,
11289
- rows
11304
+ rows,
11305
+ selectable,
11306
+ selectedRows,
11307
+ onSelectionChange,
11308
+ getRowCheckboxLabel = getDefaultRowCheckboxLabel,
11309
+ getGroupCheckboxLabel = getDefaultGroupCheckboxLabel
11290
11310
  } = props;
11291
11311
  const groupKeys = groups ? Object.keys(groups) : void 0;
11292
11312
  const hasCustomRowForGroup = isFunction2(getGroupRow);
@@ -11294,12 +11314,16 @@ var DataListGroup = (_a) => {
11294
11314
  return /* @__PURE__ */ React68.createElement(List, {
11295
11315
  items: groups,
11296
11316
  renderItem: (row, index) => {
11317
+ var _a2;
11318
+ const isChecked = (_a2 = selectedRows == null ? void 0 : selectedRows.includes(row.id)) != null ? _a2 : false;
11319
+ const isDisabled = disabled == null ? void 0 : disabled(row, index, rows);
11297
11320
  return /* @__PURE__ */ React68.createElement(DataListRow, {
11298
11321
  key: row.id,
11299
11322
  columns,
11300
11323
  row,
11301
11324
  index,
11302
11325
  rows,
11326
+ active: selectable && isChecked,
11303
11327
  menu: /* @__PURE__ */ React68.createElement(DataListRowMenu, {
11304
11328
  row,
11305
11329
  index,
@@ -11309,11 +11333,22 @@ var DataListGroup = (_a) => {
11309
11333
  menuAriaLabel
11310
11334
  }),
11311
11335
  disabled,
11336
+ additionalRowProps: () => selectable ? {
11337
+ "aria-selected": isChecked
11338
+ } : {},
11312
11339
  additionalColumnProps: (_, columnIndex) => columnIndex === 0 ? {
11313
11340
  style: {
11314
11341
  paddingLeft: `${GAP + level * INDENTATION}px`
11315
11342
  }
11316
- } : {}
11343
+ } : {},
11344
+ renderFirstColumn: (row2, index2) => {
11345
+ return /* @__PURE__ */ React68.createElement(React68.Fragment, null, selectable && /* @__PURE__ */ React68.createElement(DataList.Cell, null, /* @__PURE__ */ React68.createElement(Checkbox, {
11346
+ "aria-label": getRowCheckboxLabel(row2, index2, isChecked, rows),
11347
+ onChange: onSelectionChange(row2.id),
11348
+ checked: isChecked,
11349
+ disabled: isDisabled
11350
+ })));
11351
+ }
11317
11352
  });
11318
11353
  }
11319
11354
  });
@@ -11323,8 +11358,8 @@ var DataListGroup = (_a) => {
11323
11358
  }
11324
11359
  return /* @__PURE__ */ React68.createElement(List, {
11325
11360
  items: sortGroupKeys(groupKeys),
11326
- renderItem: (key) => {
11327
- var _a2;
11361
+ renderItem: (key, index) => {
11362
+ var _a2, _b2;
11328
11363
  const group = groups[key];
11329
11364
  if (key === "undefined" || key === void 0) {
11330
11365
  return /* @__PURE__ */ React68.createElement(DataListGroup, __spreadProps(__spreadValues({
@@ -11335,12 +11370,21 @@ var DataListGroup = (_a) => {
11335
11370
  }));
11336
11371
  }
11337
11372
  const openPanelId = expandedGroupIds ? (_a2 = expandedGroupIds.find((id) => id === key)) != null ? _a2 : null : void 0;
11373
+ const nestedRowIds = flattenRows(group).map((row) => row.id);
11374
+ const nestedSelectedIds = (_b2 = selectedRows == null ? void 0 : selectedRows.filter((id) => nestedRowIds.includes(id))) != null ? _b2 : [];
11375
+ const allSelected = nestedRowIds.length === nestedSelectedIds.length;
11376
+ const isChecked = nestedSelectedIds.length > 0;
11338
11377
  return /* @__PURE__ */ React68.createElement(Accordion, {
11339
11378
  key,
11340
11379
  openPanelId
11341
11380
  }, hasCustomRowForGroup && /* @__PURE__ */ React68.createElement(DataList.Row, {
11342
- active: !!openPanelId
11343
- }, /* @__PURE__ */ React68.createElement(List, {
11381
+ active: !!openPanelId || selectable && isChecked
11382
+ }, selectable && /* @__PURE__ */ React68.createElement(DataList.Cell, null, /* @__PURE__ */ React68.createElement(Checkbox, {
11383
+ "aria-label": getGroupCheckboxLabel(key, group, index, isChecked, rows),
11384
+ checked: isChecked,
11385
+ indeterminate: isChecked && !allSelected,
11386
+ onChange: onSelectionChange(nestedRowIds)
11387
+ })), /* @__PURE__ */ React68.createElement(List, {
11344
11388
  items: columns,
11345
11389
  renderItem: (column, idx) => /* @__PURE__ */ React68.createElement(DataList.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
11346
11390
  className: tw("gap-3"),
@@ -11362,14 +11406,19 @@ var DataListGroup = (_a) => {
11362
11406
  onMenuOpenChange,
11363
11407
  menuAriaLabel
11364
11408
  })), !hasCustomRowForGroup && /* @__PURE__ */ React68.createElement(DataList.Row, {
11365
- active: !!openPanelId
11366
- }, /* @__PURE__ */ React68.createElement(DataList.Cell, {
11409
+ active: !!openPanelId || selectable && isChecked
11410
+ }, selectable && /* @__PURE__ */ React68.createElement(DataList.Cell, null, /* @__PURE__ */ React68.createElement(Checkbox, {
11411
+ "aria-label": getGroupCheckboxLabel(key, group, index, isChecked, rows),
11412
+ checked: isChecked,
11413
+ indeterminate: isChecked && !allSelected,
11414
+ onChange: onSelectionChange(nestedRowIds)
11415
+ })), /* @__PURE__ */ React68.createElement(DataList.Cell, {
11367
11416
  className: tw("gap-3"),
11368
- style: { paddingLeft: `${GAP + level * INDENTATION}px`, gridColumn: "1 / -1" }
11417
+ style: { paddingLeft: `${GAP + level * INDENTATION}px`, gridColumn: `${selectable ? 2 : 1} / -1` }
11369
11418
  }, /* @__PURE__ */ React68.createElement(Accordion.Toggle, {
11370
11419
  panelId: key,
11371
11420
  onChange: onGroupToggled
11372
- }), "Group: ", /* @__PURE__ */ React68.createElement("b", null, key))), /* @__PURE__ */ React68.createElement(DataList.Row, {
11421
+ }), renderGroupName(key, group))), /* @__PURE__ */ React68.createElement(DataList.Row, {
11373
11422
  subgroup: true
11374
11423
  }, /* @__PURE__ */ React68.createElement(Accordion.UnanimatedPanel, {
11375
11424
  panelId: key
@@ -11422,11 +11471,11 @@ var DataListToolbar = ({
11422
11471
  sticky = true
11423
11472
  }) => {
11424
11473
  var _a;
11425
- const { selectedRows, rows } = useDataListContext();
11474
+ const { selectedRows } = useDataListContext();
11426
11475
  const actions = castArray(_actions).filter(Boolean);
11427
11476
  return /* @__PURE__ */ React70.createElement(DataList.Toolbar.Container, {
11428
11477
  sticky
11429
- }, /* @__PURE__ */ React70.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React70.createElement(DataList.Toolbar.SelectionCount, null, (_a = selectedRows == null ? void 0 : selectedRows.length) != null ? _a : 0, " of ", rows.length, " selected")), actions.length > 0 && /* @__PURE__ */ React70.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React70.createElement(DataList.Toolbar.Actions, null, actions.map(
11478
+ }, /* @__PURE__ */ React70.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React70.createElement(DataList.Toolbar.SelectionCount, null, (_a = selectedRows == null ? void 0 : selectedRows.length) != null ? _a : 0, " selected")), actions.length > 0 && /* @__PURE__ */ React70.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React70.createElement(DataList.Toolbar.Actions, null, actions.map(
11430
11479
  (action) => renderAction({
11431
11480
  kind: "ghost",
11432
11481
  dense: true,
@@ -11443,7 +11492,6 @@ var DataListToolbar = ({
11443
11492
  DataListToolbar.displayName = "DataList.Toolbar";
11444
11493
 
11445
11494
  // src/molecules/DataList/DataList.tsx
11446
- var getDefaultCheckboxLabel = () => "Select row";
11447
11495
  var DataList2 = (_a) => {
11448
11496
  var _b = _a, {
11449
11497
  columns,
@@ -11460,12 +11508,14 @@ var DataList2 = (_a) => {
11460
11508
  group,
11461
11509
  disabled,
11462
11510
  getGroupRow,
11511
+ renderGroupName,
11463
11512
  onGroupToggled,
11464
11513
  expandedGroupIds,
11465
11514
  defaultSort,
11466
11515
  onSortChanged,
11467
11516
  selectable,
11468
- getCheckboxLabel = getDefaultCheckboxLabel,
11517
+ getRowCheckboxLabel = getDefaultRowCheckboxLabel,
11518
+ getGroupCheckboxLabel = getDefaultGroupCheckboxLabel,
11469
11519
  selectedRows,
11470
11520
  defaultSelectedRows,
11471
11521
  onSelectionChange,
@@ -11485,12 +11535,14 @@ var DataList2 = (_a) => {
11485
11535
  "group",
11486
11536
  "disabled",
11487
11537
  "getGroupRow",
11538
+ "renderGroupName",
11488
11539
  "onGroupToggled",
11489
11540
  "expandedGroupIds",
11490
11541
  "defaultSort",
11491
11542
  "onSortChanged",
11492
11543
  "selectable",
11493
- "getCheckboxLabel",
11544
+ "getRowCheckboxLabel",
11545
+ "getGroupCheckboxLabel",
11494
11546
  "selectedRows",
11495
11547
  "defaultSelectedRows",
11496
11548
  "onSelectionChange",
@@ -11529,20 +11581,22 @@ var DataList2 = (_a) => {
11529
11581
  []
11530
11582
  );
11531
11583
  const handleSelectionChange = (id) => (e) => {
11584
+ const ids = castArray2(id);
11532
11585
  if (e.target.checked) {
11533
- setSelected([...selected != null ? selected : [], id]);
11586
+ setSelected([...selected != null ? selected : [], ...ids]);
11534
11587
  } else {
11535
- setSelected(selected == null ? void 0 : selected.filter((_id) => _id !== id));
11588
+ setSelected(selected == null ? void 0 : selected.filter((_id) => !ids.includes(_id)));
11536
11589
  }
11537
11590
  };
11591
+ const allRows = flattenRows(rows);
11538
11592
  const totalSelected = (_b2 = selected == null ? void 0 : selected.length) != null ? _b2 : 0;
11539
11593
  const allEnabledRowIds = compact(
11540
- sortedRows.map((row, index) => (disabled == null ? void 0 : disabled(row, index, sortedRows)) ? void 0 : row.id)
11594
+ allRows.map((row, index) => (disabled == null ? void 0 : disabled(row, index, sortedRows)) ? void 0 : row.id)
11541
11595
  );
11542
11596
  const allRowsSelected = totalSelected >= allEnabledRowIds.length;
11543
11597
  return /* @__PURE__ */ React71.createElement(DataListContext.Provider, {
11544
11598
  value: {
11545
- rows: sortedRows,
11599
+ rows: isArray3(rows) ? sortedRows : rows,
11546
11600
  selectedRows: selected
11547
11601
  }
11548
11602
  }, /* @__PURE__ */ React71.createElement(Template, {
@@ -11556,7 +11610,7 @@ var DataList2 = (_a) => {
11556
11610
  sticky
11557
11611
  }, /* @__PURE__ */ React71.createElement(Checkbox, {
11558
11612
  "aria-label": "Select all rows",
11559
- indeterminate: totalSelected > 0 && totalSelected < sortedRows.length,
11613
+ indeterminate: totalSelected > 0 && totalSelected < allRows.length,
11560
11614
  checked: totalSelected > 0,
11561
11615
  onChange: () => {
11562
11616
  if (!allRowsSelected) {
@@ -11598,12 +11652,18 @@ var DataList2 = (_a) => {
11598
11652
  columns,
11599
11653
  disabled,
11600
11654
  getGroupRow,
11655
+ renderGroupName,
11601
11656
  expandedGroupIds,
11602
11657
  menu,
11603
11658
  menuAriaLabel,
11604
11659
  onAction,
11605
11660
  onGroupToggled,
11606
11661
  onMenuOpenChange,
11662
+ selectable,
11663
+ selectedRows: selected,
11664
+ onSelectionChange: handleSelectionChange,
11665
+ getRowCheckboxLabel,
11666
+ getGroupCheckboxLabel,
11607
11667
  rows,
11608
11668
  groups,
11609
11669
  level: 0
@@ -11611,13 +11671,17 @@ var DataList2 = (_a) => {
11611
11671
  paginationContainer: PaginationFooter,
11612
11672
  items: sortedRows,
11613
11673
  renderItem: (row, index) => {
11674
+ var _a3;
11614
11675
  const details = rowDetails == null ? void 0 : rowDetails(row, index, sortedRows);
11676
+ const isChecked = (_a3 = selected == null ? void 0 : selected.includes(row.id)) != null ? _a3 : false;
11677
+ const isDisabled = disabled == null ? void 0 : disabled(row, index, sortedRows);
11615
11678
  const content = /* @__PURE__ */ React71.createElement(DataListRow, {
11616
11679
  key: row.id,
11617
11680
  columns,
11618
11681
  row,
11619
11682
  index,
11620
11683
  rows: sortedRows,
11684
+ active: selectable && isChecked,
11621
11685
  menu: /* @__PURE__ */ React71.createElement(DataListRowMenu, {
11622
11686
  row,
11623
11687
  index,
@@ -11628,17 +11692,14 @@ var DataList2 = (_a) => {
11628
11692
  }),
11629
11693
  disabled,
11630
11694
  additionalRowProps: (row2) => {
11631
- var _a3;
11695
+ var _a4;
11632
11696
  return selectable ? {
11633
- "aria-selected": (_a3 = selected == null ? void 0 : selected.includes(row2.id)) != null ? _a3 : false
11697
+ "aria-selected": (_a4 = selected == null ? void 0 : selected.includes(row2.id)) != null ? _a4 : false
11634
11698
  } : {};
11635
11699
  },
11636
11700
  renderFirstColumn: (row2, index2) => {
11637
- var _a3;
11638
- const isChecked = (_a3 = selected == null ? void 0 : selected.includes(row2.id)) != null ? _a3 : false;
11639
- const isDisabled = disabled == null ? void 0 : disabled(row2, index2, sortedRows);
11640
11701
  return /* @__PURE__ */ React71.createElement(React71.Fragment, null, selectable && /* @__PURE__ */ React71.createElement(DataList.Cell, null, /* @__PURE__ */ React71.createElement(Checkbox, {
11641
- "aria-label": getCheckboxLabel(row2, index2, isChecked, sortedRows),
11702
+ "aria-label": getRowCheckboxLabel(row2, index2, isChecked, sortedRows),
11642
11703
  onChange: handleSelectionChange(row2.id),
11643
11704
  checked: isChecked,
11644
11705
  disabled: isDisabled
@@ -12040,8 +12101,13 @@ Modal.Actions = (_a) => {
12040
12101
  // src/molecules/Dialog/Dialog.tsx
12041
12102
  var Dialog = (props) => {
12042
12103
  const ref = React76.useRef(null);
12043
- const state = useOverlayTriggerState2({ isOpen: props.open });
12044
- const { modalProps, underlayProps } = useModalOverlay({}, state, ref);
12104
+ const { open, onClose } = props;
12105
+ const state = useOverlayTriggerState2({ isOpen: open, onOpenChange: (isOpen) => !isOpen && (onClose == null ? void 0 : onClose()) });
12106
+ const { modalProps, underlayProps } = useModalOverlay(
12107
+ { isDismissable: false, isKeyboardDismissDisabled: false },
12108
+ state,
12109
+ ref
12110
+ );
12045
12111
  if (!state.isOpen) {
12046
12112
  return null;
12047
12113
  }
@@ -12064,7 +12130,11 @@ var DialogWrapper = ({
12064
12130
  const labelledBy = useId9();
12065
12131
  const describedBy = useId9();
12066
12132
  const { dialogProps } = useDialog(
12067
- { "role": "alertdialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
12133
+ {
12134
+ "role": "alertdialog",
12135
+ "aria-labelledby": labelledBy,
12136
+ "aria-describedby": describedBy
12137
+ },
12068
12138
  ref
12069
12139
  );
12070
12140
  return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({
@@ -12097,7 +12167,7 @@ import { useDialog as useDialog2 } from "@react-aria/dialog";
12097
12167
  import { Overlay as Overlay3, useModalOverlay as useModalOverlay2 } from "@react-aria/overlays";
12098
12168
  import { useId as useId10 } from "@react-aria/utils";
12099
12169
  import { animated as animated4, useSpring as useSpring3 } from "@react-spring/web";
12100
- import castArray2 from "lodash/castArray";
12170
+ import castArray3 from "lodash/castArray";
12101
12171
  import omit9 from "lodash/omit";
12102
12172
 
12103
12173
  // src/molecules/Tabs/Tabs.tsx
@@ -12526,7 +12596,7 @@ var DrawerWrapper = React78.forwardRef(
12526
12596
  }, /* @__PURE__ */ React78.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React78.createElement(Button.Icon, {
12527
12597
  "aria-label": (_a2 = menuAriaLabel != null ? menuAriaLabel : menuLabel) != null ? _a2 : "Context menu",
12528
12598
  icon: import_more4.default
12529
- })), menu)), secondaryActions && castArray2(secondaryActions).filter(Boolean).map((_b2) => {
12599
+ })), menu)), secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_b2) => {
12530
12600
  var _c = _b2, { text } = _c, action = __objRest(_c, ["text"]);
12531
12601
  return /* @__PURE__ */ React78.createElement(Button.Secondary, __spreadValues({
12532
12602
  key: text
@@ -13049,7 +13119,7 @@ import { useDialog as useDialog4 } from "@react-aria/dialog";
13049
13119
  import { Overlay as Overlay4, useModalOverlay as useModalOverlay3 } from "@react-aria/overlays";
13050
13120
  import { useId as useId11 } from "@react-aria/utils";
13051
13121
  import { useOverlayTriggerState as useOverlayTriggerState5 } from "@react-stately/overlays";
13052
- import castArray3 from "lodash/castArray";
13122
+ import castArray4 from "lodash/castArray";
13053
13123
  import omit11 from "lodash/omit";
13054
13124
  var import_cross7 = __toESM(require_cross());
13055
13125
  var Modal2 = (_a) => {
@@ -13102,7 +13172,7 @@ var ModalWrapper = React90.forwardRef(
13102
13172
  id: describedBy,
13103
13173
  tabIndex: 0,
13104
13174
  noFooter: !(secondaryActions || primaryAction)
13105
- }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React90.createElement(Modal.Footer, null, /* @__PURE__ */ React90.createElement(Modal.Actions, null, secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_a2) => {
13175
+ }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React90.createElement(Modal.Footer, null, /* @__PURE__ */ React90.createElement(Modal.Actions, null, secondaryActions && castArray4(secondaryActions).filter(Boolean).map((_a2) => {
13106
13176
  var _b2 = _a2, { text } = _b2, action = __objRest(_b2, ["text"]);
13107
13177
  return /* @__PURE__ */ React90.createElement(Button.Secondary, __spreadValues({
13108
13178
  key: text
@@ -13126,7 +13196,7 @@ var ModalTabs = createTabsComponent(
13126
13196
  // src/molecules/MultiInput/MultiInput.tsx
13127
13197
  import React92, { useEffect as useEffect11, useRef as useRef9, useState as useState11 } from "react";
13128
13198
  import { useId as useId12 } from "@react-aria/utils";
13129
- import castArray4 from "lodash/castArray";
13199
+ import castArray5 from "lodash/castArray";
13130
13200
  import identity from "lodash/identity";
13131
13201
  import omit12 from "lodash/omit";
13132
13202
 
@@ -13266,7 +13336,7 @@ var MultiInputBase = (_a) => {
13266
13336
  inputRef.current.value = "";
13267
13337
  }
13268
13338
  if (value2) {
13269
- const newItems = castArray4(value2).map(createItem).filter((item) => !items.includes(item));
13339
+ const newItems = castArray5(value2).map(createItem).filter((item) => !items.includes(item));
13270
13340
  if (newItems.length > 0 && items.length + newItems.length <= (maxLength != null ? maxLength : Number.MAX_SAFE_INTEGER)) {
13271
13341
  const updated = (items != null ? items : []).concat(newItems);
13272
13342
  setItems(updated);
@@ -13865,7 +13935,7 @@ Navigation2.Section = Navigation.Section;
13865
13935
 
13866
13936
  // src/molecules/PageHeader/PageHeader.tsx
13867
13937
  import React98 from "react";
13868
- import castArray5 from "lodash/castArray";
13938
+ import castArray6 from "lodash/castArray";
13869
13939
 
13870
13940
  // src/atoms/PageHeader/PageHeader.tsx
13871
13941
  import React97 from "react";
@@ -13959,7 +14029,7 @@ var CommonPageHeader = ({
13959
14029
  }, /* @__PURE__ */ React98.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React98.createElement(Button.Icon, {
13960
14030
  "aria-label": menuAriaLabel,
13961
14031
  icon: import_more5.default
13962
- })), menu)), secondaryActions && castArray5(secondaryActions).filter(Boolean).map((secondaryAction2) => renderAction({ kind: "secondary", action: secondaryAction2 })), primaryAction && renderAction({ kind: "primary", action: primaryAction })));
14032
+ })), menu)), secondaryActions && castArray6(secondaryActions).filter(Boolean).map((secondaryAction2) => renderAction({ kind: "secondary", action: secondaryAction2 })), primaryAction && renderAction({ kind: "primary", action: primaryAction })));
13963
14033
  };
13964
14034
  var PageHeader2 = (props) => /* @__PURE__ */ React98.createElement(CommonPageHeader, __spreadValues({}, props));
13965
14035
  PageHeader2.displayName = "PageHeader";
@@ -14261,7 +14331,7 @@ RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
14261
14331
  import React109 from "react";
14262
14332
  import { useId as useId16 } from "@react-aria/utils";
14263
14333
  import { animated as animated5, useSpring as useSpring4 } from "@react-spring/web";
14264
- import castArray6 from "lodash/castArray";
14334
+ import castArray7 from "lodash/castArray";
14265
14335
  import isUndefined9 from "lodash/isUndefined";
14266
14336
 
14267
14337
  // src/molecules/Switch/Switch.tsx
@@ -14534,7 +14604,7 @@ var Section4 = (props) => {
14534
14604
  }, /* @__PURE__ */ React109.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React109.createElement(Button.Icon, {
14535
14605
  "aria-label": menuAriaLabel,
14536
14606
  icon: import_more6.default
14537
- })), menu)), props.actions && castArray6(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.switch && /* @__PURE__ */ React109.createElement(Switch2, __spreadValues({}, props.switch)), props.select && /* @__PURE__ */ React109.createElement(SelectBase, __spreadValues({
14607
+ })), menu)), props.actions && castArray7(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.switch && /* @__PURE__ */ React109.createElement(Switch2, __spreadValues({}, props.switch)), props.select && /* @__PURE__ */ React109.createElement(SelectBase, __spreadValues({
14538
14608
  "aria-labelledby": titleId
14539
14609
  }, props.select)))), !hasTabs && /* @__PURE__ */ React109.createElement(animated5.div, {
14540
14610
  className: tw(`h-[1px]`),