@aivenio/aquarium 1.62.0 → 1.63.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,16 @@ 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}`;
11271
11284
  var DataListGroup = (_a) => {
11272
11285
  var _b = _a, {
11273
11286
  groups,
@@ -11286,7 +11299,12 @@ var DataListGroup = (_a) => {
11286
11299
  onAction,
11287
11300
  onGroupToggled,
11288
11301
  onMenuOpenChange,
11289
- rows
11302
+ rows,
11303
+ selectable,
11304
+ selectedRows,
11305
+ onSelectionChange,
11306
+ getRowCheckboxLabel = getDefaultRowCheckboxLabel,
11307
+ getGroupCheckboxLabel = getDefaultGroupCheckboxLabel
11290
11308
  } = props;
11291
11309
  const groupKeys = groups ? Object.keys(groups) : void 0;
11292
11310
  const hasCustomRowForGroup = isFunction2(getGroupRow);
@@ -11294,12 +11312,16 @@ var DataListGroup = (_a) => {
11294
11312
  return /* @__PURE__ */ React68.createElement(List, {
11295
11313
  items: groups,
11296
11314
  renderItem: (row, index) => {
11315
+ var _a2;
11316
+ const isChecked = (_a2 = selectedRows == null ? void 0 : selectedRows.includes(row.id)) != null ? _a2 : false;
11317
+ const isDisabled = disabled == null ? void 0 : disabled(row, index, rows);
11297
11318
  return /* @__PURE__ */ React68.createElement(DataListRow, {
11298
11319
  key: row.id,
11299
11320
  columns,
11300
11321
  row,
11301
11322
  index,
11302
11323
  rows,
11324
+ active: selectable && isChecked,
11303
11325
  menu: /* @__PURE__ */ React68.createElement(DataListRowMenu, {
11304
11326
  row,
11305
11327
  index,
@@ -11309,11 +11331,22 @@ var DataListGroup = (_a) => {
11309
11331
  menuAriaLabel
11310
11332
  }),
11311
11333
  disabled,
11334
+ additionalRowProps: () => selectable ? {
11335
+ "aria-selected": isChecked
11336
+ } : {},
11312
11337
  additionalColumnProps: (_, columnIndex) => columnIndex === 0 ? {
11313
11338
  style: {
11314
11339
  paddingLeft: `${GAP + level * INDENTATION}px`
11315
11340
  }
11316
- } : {}
11341
+ } : {},
11342
+ renderFirstColumn: (row2, index2) => {
11343
+ return /* @__PURE__ */ React68.createElement(React68.Fragment, null, selectable && /* @__PURE__ */ React68.createElement(DataList.Cell, null, /* @__PURE__ */ React68.createElement(Checkbox, {
11344
+ "aria-label": getRowCheckboxLabel(row2, index2, isChecked, rows),
11345
+ onChange: onSelectionChange(row2.id),
11346
+ checked: isChecked,
11347
+ disabled: isDisabled
11348
+ })));
11349
+ }
11317
11350
  });
11318
11351
  }
11319
11352
  });
@@ -11323,8 +11356,8 @@ var DataListGroup = (_a) => {
11323
11356
  }
11324
11357
  return /* @__PURE__ */ React68.createElement(List, {
11325
11358
  items: sortGroupKeys(groupKeys),
11326
- renderItem: (key) => {
11327
- var _a2;
11359
+ renderItem: (key, index) => {
11360
+ var _a2, _b2;
11328
11361
  const group = groups[key];
11329
11362
  if (key === "undefined" || key === void 0) {
11330
11363
  return /* @__PURE__ */ React68.createElement(DataListGroup, __spreadProps(__spreadValues({
@@ -11335,12 +11368,21 @@ var DataListGroup = (_a) => {
11335
11368
  }));
11336
11369
  }
11337
11370
  const openPanelId = expandedGroupIds ? (_a2 = expandedGroupIds.find((id) => id === key)) != null ? _a2 : null : void 0;
11371
+ const nestedRowIds = flattenRows(group).map((row) => row.id);
11372
+ const nestedSelectedIds = (_b2 = selectedRows == null ? void 0 : selectedRows.filter((id) => nestedRowIds.includes(id))) != null ? _b2 : [];
11373
+ const allSelected = nestedRowIds.length === nestedSelectedIds.length;
11374
+ const isChecked = nestedSelectedIds.length > 0;
11338
11375
  return /* @__PURE__ */ React68.createElement(Accordion, {
11339
11376
  key,
11340
11377
  openPanelId
11341
11378
  }, hasCustomRowForGroup && /* @__PURE__ */ React68.createElement(DataList.Row, {
11342
- active: !!openPanelId
11343
- }, /* @__PURE__ */ React68.createElement(List, {
11379
+ active: !!openPanelId || selectable && isChecked
11380
+ }, selectable && /* @__PURE__ */ React68.createElement(DataList.Cell, null, /* @__PURE__ */ React68.createElement(Checkbox, {
11381
+ "aria-label": getGroupCheckboxLabel(key, group, index, isChecked, rows),
11382
+ checked: isChecked,
11383
+ indeterminate: isChecked && !allSelected,
11384
+ onChange: onSelectionChange(nestedRowIds)
11385
+ })), /* @__PURE__ */ React68.createElement(List, {
11344
11386
  items: columns,
11345
11387
  renderItem: (column, idx) => /* @__PURE__ */ React68.createElement(DataList.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
11346
11388
  className: tw("gap-3"),
@@ -11362,10 +11404,15 @@ var DataListGroup = (_a) => {
11362
11404
  onMenuOpenChange,
11363
11405
  menuAriaLabel
11364
11406
  })), !hasCustomRowForGroup && /* @__PURE__ */ React68.createElement(DataList.Row, {
11365
- active: !!openPanelId
11366
- }, /* @__PURE__ */ React68.createElement(DataList.Cell, {
11407
+ active: !!openPanelId || selectable && isChecked
11408
+ }, selectable && /* @__PURE__ */ React68.createElement(DataList.Cell, null, /* @__PURE__ */ React68.createElement(Checkbox, {
11409
+ "aria-label": getGroupCheckboxLabel(key, group, index, isChecked, rows),
11410
+ checked: isChecked,
11411
+ indeterminate: isChecked && !allSelected,
11412
+ onChange: onSelectionChange(nestedRowIds)
11413
+ })), /* @__PURE__ */ React68.createElement(DataList.Cell, {
11367
11414
  className: tw("gap-3"),
11368
- style: { paddingLeft: `${GAP + level * INDENTATION}px`, gridColumn: "1 / -1" }
11415
+ style: { paddingLeft: `${GAP + level * INDENTATION}px`, gridColumn: `${selectable ? 2 : 1} / -1` }
11369
11416
  }, /* @__PURE__ */ React68.createElement(Accordion.Toggle, {
11370
11417
  panelId: key,
11371
11418
  onChange: onGroupToggled
@@ -11422,11 +11469,11 @@ var DataListToolbar = ({
11422
11469
  sticky = true
11423
11470
  }) => {
11424
11471
  var _a;
11425
- const { selectedRows, rows } = useDataListContext();
11472
+ const { selectedRows } = useDataListContext();
11426
11473
  const actions = castArray(_actions).filter(Boolean);
11427
11474
  return /* @__PURE__ */ React70.createElement(DataList.Toolbar.Container, {
11428
11475
  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(
11476
+ }, /* @__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
11477
  (action) => renderAction({
11431
11478
  kind: "ghost",
11432
11479
  dense: true,
@@ -11443,7 +11490,6 @@ var DataListToolbar = ({
11443
11490
  DataListToolbar.displayName = "DataList.Toolbar";
11444
11491
 
11445
11492
  // src/molecules/DataList/DataList.tsx
11446
- var getDefaultCheckboxLabel = () => "Select row";
11447
11493
  var DataList2 = (_a) => {
11448
11494
  var _b = _a, {
11449
11495
  columns,
@@ -11465,7 +11511,8 @@ var DataList2 = (_a) => {
11465
11511
  defaultSort,
11466
11512
  onSortChanged,
11467
11513
  selectable,
11468
- getCheckboxLabel = getDefaultCheckboxLabel,
11514
+ getRowCheckboxLabel = getDefaultRowCheckboxLabel,
11515
+ getGroupCheckboxLabel = getDefaultGroupCheckboxLabel,
11469
11516
  selectedRows,
11470
11517
  defaultSelectedRows,
11471
11518
  onSelectionChange,
@@ -11490,7 +11537,8 @@ var DataList2 = (_a) => {
11490
11537
  "defaultSort",
11491
11538
  "onSortChanged",
11492
11539
  "selectable",
11493
- "getCheckboxLabel",
11540
+ "getRowCheckboxLabel",
11541
+ "getGroupCheckboxLabel",
11494
11542
  "selectedRows",
11495
11543
  "defaultSelectedRows",
11496
11544
  "onSelectionChange",
@@ -11529,20 +11577,22 @@ var DataList2 = (_a) => {
11529
11577
  []
11530
11578
  );
11531
11579
  const handleSelectionChange = (id) => (e) => {
11580
+ const ids = castArray2(id);
11532
11581
  if (e.target.checked) {
11533
- setSelected([...selected != null ? selected : [], id]);
11582
+ setSelected([...selected != null ? selected : [], ...ids]);
11534
11583
  } else {
11535
- setSelected(selected == null ? void 0 : selected.filter((_id) => _id !== id));
11584
+ setSelected(selected == null ? void 0 : selected.filter((_id) => !ids.includes(_id)));
11536
11585
  }
11537
11586
  };
11587
+ const allRows = flattenRows(rows);
11538
11588
  const totalSelected = (_b2 = selected == null ? void 0 : selected.length) != null ? _b2 : 0;
11539
11589
  const allEnabledRowIds = compact(
11540
- sortedRows.map((row, index) => (disabled == null ? void 0 : disabled(row, index, sortedRows)) ? void 0 : row.id)
11590
+ allRows.map((row, index) => (disabled == null ? void 0 : disabled(row, index, sortedRows)) ? void 0 : row.id)
11541
11591
  );
11542
11592
  const allRowsSelected = totalSelected >= allEnabledRowIds.length;
11543
11593
  return /* @__PURE__ */ React71.createElement(DataListContext.Provider, {
11544
11594
  value: {
11545
- rows: sortedRows,
11595
+ rows: isArray3(rows) ? sortedRows : rows,
11546
11596
  selectedRows: selected
11547
11597
  }
11548
11598
  }, /* @__PURE__ */ React71.createElement(Template, {
@@ -11556,7 +11606,7 @@ var DataList2 = (_a) => {
11556
11606
  sticky
11557
11607
  }, /* @__PURE__ */ React71.createElement(Checkbox, {
11558
11608
  "aria-label": "Select all rows",
11559
- indeterminate: totalSelected > 0 && totalSelected < sortedRows.length,
11609
+ indeterminate: totalSelected > 0 && totalSelected < allRows.length,
11560
11610
  checked: totalSelected > 0,
11561
11611
  onChange: () => {
11562
11612
  if (!allRowsSelected) {
@@ -11604,6 +11654,11 @@ var DataList2 = (_a) => {
11604
11654
  onAction,
11605
11655
  onGroupToggled,
11606
11656
  onMenuOpenChange,
11657
+ selectable,
11658
+ selectedRows: selected,
11659
+ onSelectionChange: handleSelectionChange,
11660
+ getRowCheckboxLabel,
11661
+ getGroupCheckboxLabel,
11607
11662
  rows,
11608
11663
  groups,
11609
11664
  level: 0
@@ -11611,13 +11666,17 @@ var DataList2 = (_a) => {
11611
11666
  paginationContainer: PaginationFooter,
11612
11667
  items: sortedRows,
11613
11668
  renderItem: (row, index) => {
11669
+ var _a3;
11614
11670
  const details = rowDetails == null ? void 0 : rowDetails(row, index, sortedRows);
11671
+ const isChecked = (_a3 = selected == null ? void 0 : selected.includes(row.id)) != null ? _a3 : false;
11672
+ const isDisabled = disabled == null ? void 0 : disabled(row, index, sortedRows);
11615
11673
  const content = /* @__PURE__ */ React71.createElement(DataListRow, {
11616
11674
  key: row.id,
11617
11675
  columns,
11618
11676
  row,
11619
11677
  index,
11620
11678
  rows: sortedRows,
11679
+ active: selectable && isChecked,
11621
11680
  menu: /* @__PURE__ */ React71.createElement(DataListRowMenu, {
11622
11681
  row,
11623
11682
  index,
@@ -11628,17 +11687,14 @@ var DataList2 = (_a) => {
11628
11687
  }),
11629
11688
  disabled,
11630
11689
  additionalRowProps: (row2) => {
11631
- var _a3;
11690
+ var _a4;
11632
11691
  return selectable ? {
11633
- "aria-selected": (_a3 = selected == null ? void 0 : selected.includes(row2.id)) != null ? _a3 : false
11692
+ "aria-selected": (_a4 = selected == null ? void 0 : selected.includes(row2.id)) != null ? _a4 : false
11634
11693
  } : {};
11635
11694
  },
11636
11695
  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
11696
  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),
11697
+ "aria-label": getRowCheckboxLabel(row2, index2, isChecked, sortedRows),
11642
11698
  onChange: handleSelectionChange(row2.id),
11643
11699
  checked: isChecked,
11644
11700
  disabled: isDisabled
@@ -12040,8 +12096,13 @@ Modal.Actions = (_a) => {
12040
12096
  // src/molecules/Dialog/Dialog.tsx
12041
12097
  var Dialog = (props) => {
12042
12098
  const ref = React76.useRef(null);
12043
- const state = useOverlayTriggerState2({ isOpen: props.open });
12044
- const { modalProps, underlayProps } = useModalOverlay({}, state, ref);
12099
+ const { open, onClose } = props;
12100
+ const state = useOverlayTriggerState2({ isOpen: open, onOpenChange: (isOpen) => !isOpen && (onClose == null ? void 0 : onClose()) });
12101
+ const { modalProps, underlayProps } = useModalOverlay(
12102
+ { isDismissable: false, isKeyboardDismissDisabled: false },
12103
+ state,
12104
+ ref
12105
+ );
12045
12106
  if (!state.isOpen) {
12046
12107
  return null;
12047
12108
  }
@@ -12064,7 +12125,11 @@ var DialogWrapper = ({
12064
12125
  const labelledBy = useId9();
12065
12126
  const describedBy = useId9();
12066
12127
  const { dialogProps } = useDialog(
12067
- { "role": "alertdialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
12128
+ {
12129
+ "role": "alertdialog",
12130
+ "aria-labelledby": labelledBy,
12131
+ "aria-describedby": describedBy
12132
+ },
12068
12133
  ref
12069
12134
  );
12070
12135
  return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({
@@ -12097,7 +12162,7 @@ import { useDialog as useDialog2 } from "@react-aria/dialog";
12097
12162
  import { Overlay as Overlay3, useModalOverlay as useModalOverlay2 } from "@react-aria/overlays";
12098
12163
  import { useId as useId10 } from "@react-aria/utils";
12099
12164
  import { animated as animated4, useSpring as useSpring3 } from "@react-spring/web";
12100
- import castArray2 from "lodash/castArray";
12165
+ import castArray3 from "lodash/castArray";
12101
12166
  import omit9 from "lodash/omit";
12102
12167
 
12103
12168
  // src/molecules/Tabs/Tabs.tsx
@@ -12526,7 +12591,7 @@ var DrawerWrapper = React78.forwardRef(
12526
12591
  }, /* @__PURE__ */ React78.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React78.createElement(Button.Icon, {
12527
12592
  "aria-label": (_a2 = menuAriaLabel != null ? menuAriaLabel : menuLabel) != null ? _a2 : "Context menu",
12528
12593
  icon: import_more4.default
12529
- })), menu)), secondaryActions && castArray2(secondaryActions).filter(Boolean).map((_b2) => {
12594
+ })), menu)), secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_b2) => {
12530
12595
  var _c = _b2, { text } = _c, action = __objRest(_c, ["text"]);
12531
12596
  return /* @__PURE__ */ React78.createElement(Button.Secondary, __spreadValues({
12532
12597
  key: text
@@ -13049,7 +13114,7 @@ import { useDialog as useDialog4 } from "@react-aria/dialog";
13049
13114
  import { Overlay as Overlay4, useModalOverlay as useModalOverlay3 } from "@react-aria/overlays";
13050
13115
  import { useId as useId11 } from "@react-aria/utils";
13051
13116
  import { useOverlayTriggerState as useOverlayTriggerState5 } from "@react-stately/overlays";
13052
- import castArray3 from "lodash/castArray";
13117
+ import castArray4 from "lodash/castArray";
13053
13118
  import omit11 from "lodash/omit";
13054
13119
  var import_cross7 = __toESM(require_cross());
13055
13120
  var Modal2 = (_a) => {
@@ -13102,7 +13167,7 @@ var ModalWrapper = React90.forwardRef(
13102
13167
  id: describedBy,
13103
13168
  tabIndex: 0,
13104
13169
  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) => {
13170
+ }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React90.createElement(Modal.Footer, null, /* @__PURE__ */ React90.createElement(Modal.Actions, null, secondaryActions && castArray4(secondaryActions).filter(Boolean).map((_a2) => {
13106
13171
  var _b2 = _a2, { text } = _b2, action = __objRest(_b2, ["text"]);
13107
13172
  return /* @__PURE__ */ React90.createElement(Button.Secondary, __spreadValues({
13108
13173
  key: text
@@ -13126,7 +13191,7 @@ var ModalTabs = createTabsComponent(
13126
13191
  // src/molecules/MultiInput/MultiInput.tsx
13127
13192
  import React92, { useEffect as useEffect11, useRef as useRef9, useState as useState11 } from "react";
13128
13193
  import { useId as useId12 } from "@react-aria/utils";
13129
- import castArray4 from "lodash/castArray";
13194
+ import castArray5 from "lodash/castArray";
13130
13195
  import identity from "lodash/identity";
13131
13196
  import omit12 from "lodash/omit";
13132
13197
 
@@ -13266,7 +13331,7 @@ var MultiInputBase = (_a) => {
13266
13331
  inputRef.current.value = "";
13267
13332
  }
13268
13333
  if (value2) {
13269
- const newItems = castArray4(value2).map(createItem).filter((item) => !items.includes(item));
13334
+ const newItems = castArray5(value2).map(createItem).filter((item) => !items.includes(item));
13270
13335
  if (newItems.length > 0 && items.length + newItems.length <= (maxLength != null ? maxLength : Number.MAX_SAFE_INTEGER)) {
13271
13336
  const updated = (items != null ? items : []).concat(newItems);
13272
13337
  setItems(updated);
@@ -13865,7 +13930,7 @@ Navigation2.Section = Navigation.Section;
13865
13930
 
13866
13931
  // src/molecules/PageHeader/PageHeader.tsx
13867
13932
  import React98 from "react";
13868
- import castArray5 from "lodash/castArray";
13933
+ import castArray6 from "lodash/castArray";
13869
13934
 
13870
13935
  // src/atoms/PageHeader/PageHeader.tsx
13871
13936
  import React97 from "react";
@@ -13959,7 +14024,7 @@ var CommonPageHeader = ({
13959
14024
  }, /* @__PURE__ */ React98.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React98.createElement(Button.Icon, {
13960
14025
  "aria-label": menuAriaLabel,
13961
14026
  icon: import_more5.default
13962
- })), menu)), secondaryActions && castArray5(secondaryActions).filter(Boolean).map((secondaryAction2) => renderAction({ kind: "secondary", action: secondaryAction2 })), primaryAction && renderAction({ kind: "primary", action: primaryAction })));
14027
+ })), menu)), secondaryActions && castArray6(secondaryActions).filter(Boolean).map((secondaryAction2) => renderAction({ kind: "secondary", action: secondaryAction2 })), primaryAction && renderAction({ kind: "primary", action: primaryAction })));
13963
14028
  };
13964
14029
  var PageHeader2 = (props) => /* @__PURE__ */ React98.createElement(CommonPageHeader, __spreadValues({}, props));
13965
14030
  PageHeader2.displayName = "PageHeader";
@@ -14261,7 +14326,7 @@ RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
14261
14326
  import React109 from "react";
14262
14327
  import { useId as useId16 } from "@react-aria/utils";
14263
14328
  import { animated as animated5, useSpring as useSpring4 } from "@react-spring/web";
14264
- import castArray6 from "lodash/castArray";
14329
+ import castArray7 from "lodash/castArray";
14265
14330
  import isUndefined9 from "lodash/isUndefined";
14266
14331
 
14267
14332
  // src/molecules/Switch/Switch.tsx
@@ -14534,7 +14599,7 @@ var Section4 = (props) => {
14534
14599
  }, /* @__PURE__ */ React109.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React109.createElement(Button.Icon, {
14535
14600
  "aria-label": menuAriaLabel,
14536
14601
  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({
14602
+ })), 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
14603
  "aria-labelledby": titleId
14539
14604
  }, props.select)))), !hasTabs && /* @__PURE__ */ React109.createElement(animated5.div, {
14540
14605
  className: tw(`h-[1px]`),