@aivenio/aquarium 6.1.0 → 6.2.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 (38) hide show
  1. package/dist/_variables.scss +1 -1
  2. package/dist/atoms.cjs +8 -6
  3. package/dist/atoms.mjs +8 -6
  4. package/dist/charts.cjs +3 -3
  5. package/dist/charts.mjs +3 -3
  6. package/dist/src/atoms/ChoiceChip/ChoiceChip.js +3 -3
  7. package/dist/src/atoms/CommandPalette/CommandPalette.d.ts +16 -0
  8. package/dist/src/atoms/CommandPalette/CommandPalette.js +3 -1
  9. package/dist/src/molecules/CommandPalette/CommandPalette.d.ts +12 -4
  10. package/dist/src/molecules/CommandPalette/CommandPalette.js +17 -5
  11. package/dist/src/molecules/CommandPalette/CommandPaletteProvider.d.ts +5 -0
  12. package/dist/src/molecules/CommandPalette/CommandPaletteProvider.js +102 -27
  13. package/dist/src/molecules/CommandPalette/findSubCommands.d.ts +13 -0
  14. package/dist/src/molecules/CommandPalette/findSubCommands.js +65 -0
  15. package/dist/src/molecules/CommandPalette/types.d.ts +31 -1
  16. package/dist/src/molecules/CommandPalette/types.js +10 -1
  17. package/dist/src/molecules/DataList/DataList.d.ts +5 -1
  18. package/dist/src/molecules/DataList/DataList.js +3 -3
  19. package/dist/src/molecules/Popover/Popover.d.ts +3 -0
  20. package/dist/src/molecules/Popover/Popover.js +1 -1
  21. package/dist/src/molecules/Section/Section.d.ts +9 -0
  22. package/dist/src/molecules/Section/Section.js +13 -6
  23. package/dist/src/molecules/SegmentedControl/SegmentedControl.js +3 -3
  24. package/dist/src/molecules/Table/Table.d.ts +3 -0
  25. package/dist/src/molecules/Table/Table.js +4 -1
  26. package/dist/src/molecules/Tabs/Tabs.d.ts +4 -0
  27. package/dist/src/molecules/Tabs/Tabs.js +3 -3
  28. package/dist/src/molecules/TagLabel/TagLabel.d.ts +1 -1
  29. package/dist/src/molecules/TagLabel/TagLabel.js +1 -1
  30. package/dist/src/molecules/Typography/Typography.d.ts +3 -0
  31. package/dist/src/molecules/Typography/Typography.js +1 -1
  32. package/dist/src/tokens/tokens.json +3 -3
  33. package/dist/styles.css +40 -28
  34. package/dist/system.cjs +838 -673
  35. package/dist/system.mjs +793 -626
  36. package/dist/tokens.json +3 -3
  37. package/dist/tsconfig.module.tsbuildinfo +1 -1
  38. package/package.json +1 -1
package/dist/system.mjs CHANGED
@@ -1652,8 +1652,8 @@ var tokens_default = {
1652
1652
  medium: "rgba(235,235,235,1)",
1653
1653
  intense: "rgba(181,181,183,1)",
1654
1654
  primary: {
1655
- muted: "rgba(240,254,254,1)",
1656
- default: "rgba(240,254,254,1)",
1655
+ muted: "rgba(217,249,248,1)",
1656
+ default: "rgba(217,249,248,1)",
1657
1657
  graphic: "rgba(46,208,205,1)",
1658
1658
  intense: "rgba(0,128,124,1)",
1659
1659
  inverse: "rgba(0,128,124,1)",
@@ -1697,7 +1697,7 @@ var tokens_default = {
1697
1697
  inverse: "rgba(198,42,42,1)"
1698
1698
  },
1699
1699
  status: {
1700
- announcement: "rgba(240,254,254,1)",
1700
+ announcement: "rgba(217,249,248,1)",
1701
1701
  info: "rgba(233,249,253,1)",
1702
1702
  warning: "rgba(255,249,230,1)",
1703
1703
  danger: "rgba(255,241,241,1)",
@@ -5279,7 +5279,7 @@ var choiceChipClasses = tv13({
5279
5279
  label: "Aquarium-ChoiceChip inline-flex cursor-pointer",
5280
5280
  input: "peer appearance-none",
5281
5281
  chip: [
5282
- "inline-flex items-center border rounded-full transition whitespace-nowrap hover:bg-primary-hover",
5282
+ "inline-flex items-center border rounded-full transition whitespace-nowrap hover:bg-primary-active",
5283
5283
  "peer-focus-visible:ring-2 peer-focus-visible:ring-info-default peer-focus-visible:ring-offset-1",
5284
5284
  "peer-disabled:cursor-not-allowed peer-disabled:text-inactive peer-disabled:bg-muted peer-disabled:hover:bg-muted"
5285
5285
  ]
@@ -5291,7 +5291,7 @@ var choiceChipClasses = tv13({
5291
5291
  },
5292
5292
  dense: {
5293
5293
  true: { chip: "typography-small py-2 px-3 gap-x-2" },
5294
- false: { chip: "typography-small py-3 px-5 gap-x-3" }
5294
+ false: { chip: "typography-default py-3 px-5 gap-x-3" }
5295
5295
  }
5296
5296
  },
5297
5297
  defaultVariants: {
@@ -5690,13 +5690,13 @@ Combobox.Skeleton = ComboboxSkeleton;
5690
5690
  Combobox.Skeleton.displayName = "Combobox.Skeleton";
5691
5691
 
5692
5692
  // src/molecules/CommandPalette/CommandPalette.tsx
5693
- import React63, { useEffect as useEffect7 } from "react";
5693
+ import React64, { useEffect as useEffect7 } from "react";
5694
5694
  import {
5695
5695
  Collection as AriaCollection2,
5696
5696
  composeRenderProps as composeRenderProps3,
5697
5697
  Header as AriaHeader2,
5698
- MenuItem as AriaMenuItem2,
5699
- MenuSection as AriaMenuSection2
5698
+ MenuItem as AriaMenuItem3,
5699
+ MenuSection as AriaMenuSection3
5700
5700
  } from "react-aria-components";
5701
5701
  import { useId as useId6 } from "@react-aria/utils";
5702
5702
 
@@ -5710,7 +5710,9 @@ var commandPaletteStyles = tv15({
5710
5710
  searchContainer: "flex items-center gap-x-3 p-5 border-b border-muted",
5711
5711
  searchInput: "outline-none grow bg-transparent [&::-webkit-search-cancel-button]:hidden",
5712
5712
  itemIcon: "text-muted group-data-[focused]:text-default",
5713
- emptyState: "p-6 text-center text-muted typography-default"
5713
+ emptyState: "p-6 text-center text-muted typography-default",
5714
+ breadcrumbHeader: "typography-small font-semibold",
5715
+ breadcrumbBackButton: "text-muted"
5714
5716
  }
5715
5717
  });
5716
5718
  var EmptyState = ({ className, children, ...rest }) => {
@@ -5807,20 +5809,22 @@ var EmptyStateContainer2 = ({ className, children, ...props }) => /* @__PURE__ *
5807
5809
  DropdownMenu.EmptyStateContainer = EmptyStateContainer2;
5808
5810
 
5809
5811
  // src/molecules/CommandPalette/CommandPaletteProvider.tsx
5810
- import React62, {
5812
+ import React63, {
5811
5813
  createContext as createContext3,
5812
5814
  useCallback,
5813
5815
  useContext as useContext6,
5814
5816
  useEffect as useEffect6,
5817
+ useMemo as useMemo3,
5815
5818
  useReducer as useReducer2,
5816
- useRef as useRef7,
5817
- useState as useState6
5819
+ useRef as useRef7
5818
5820
  } from "react";
5819
5821
  import {
5820
5822
  Autocomplete as AriaAutocomplete,
5821
5823
  Dialog as AriaDialog,
5822
5824
  Input as AriaInput,
5823
5825
  Menu as AriaMenu2,
5826
+ MenuItem as AriaMenuItem2,
5827
+ MenuSection as AriaMenuSection2,
5824
5828
  Modal as AriaModal,
5825
5829
  ModalOverlay as AriaModalOverlay,
5826
5830
  SearchField as AriaSearchField
@@ -6073,18 +6077,74 @@ var SearchIcon = ({ onClick }) => /* @__PURE__ */ React60.createElement(Icon, {
6073
6077
  var UploadIcon = ({ onClick }) => /* @__PURE__ */ React60.createElement(Icon, { icon: upload_default, color: "primary-intense", "data-testid": "icon-upload", onClick });
6074
6078
  var ResetIcon = ({ onClick }) => /* @__PURE__ */ React60.createElement(Icon, { className: "hover:cursor-pointer", icon: cross_default, color: "inactive", "data-testid": "icon-reset", onClick });
6075
6079
 
6076
- // src/molecules/CommandPalette/rankCommands.ts
6080
+ // src/molecules/CommandPalette/findSubCommands.ts
6077
6081
  import React61 from "react";
6082
+ var isCommand = (el) => typeof el.type !== "string" && el.type.displayName === "CommandPalette.Command";
6083
+ var findCommandById = (node, id) => {
6084
+ for (const child of React61.Children.toArray(node)) {
6085
+ if (!React61.isValidElement(child)) {
6086
+ continue;
6087
+ }
6088
+ if (isCommand(child) && child.props.id === id) {
6089
+ return child;
6090
+ }
6091
+ const nested = findCommandById(child.props.children, id);
6092
+ if (nested !== null) {
6093
+ return nested;
6094
+ }
6095
+ }
6096
+ return null;
6097
+ };
6098
+ var findSubCommands = (registrations, parentId) => {
6099
+ const match = findCommandInRegistrations(registrations, parentId);
6100
+ if (match === null) {
6101
+ return null;
6102
+ }
6103
+ return match.props.children ?? null;
6104
+ };
6105
+ var findCommandInRegistrations = (registrations, id) => {
6106
+ for (const reg of registrations) {
6107
+ const match = findCommandById(reg.children, id);
6108
+ if (match !== null) {
6109
+ return match;
6110
+ }
6111
+ }
6112
+ return null;
6113
+ };
6114
+ var containsCommand = (children) => findFirstCommand(children) !== null;
6115
+ var findFirstCommand = (node) => {
6116
+ for (const child of React61.Children.toArray(node)) {
6117
+ if (!React61.isValidElement(child)) {
6118
+ continue;
6119
+ }
6120
+ if (isCommand(child)) {
6121
+ return child;
6122
+ }
6123
+ const nested = findFirstCommand(child.props.children);
6124
+ if (nested !== null) {
6125
+ return nested;
6126
+ }
6127
+ }
6128
+ return null;
6129
+ };
6130
+
6131
+ // src/molecules/CommandPalette/rankCommands.ts
6132
+ import React62 from "react";
6078
6133
  import { matchSorter as matchSorter2 } from "match-sorter";
6079
6134
 
6080
6135
  // src/molecules/CommandPalette/types.ts
6081
6136
  var STATIC_ITEM_MARKER = "\u200B";
6082
6137
  var FIELD_SEPARATOR = "";
6138
+ var ROOT_LEVEL = {
6139
+ parentId: null,
6140
+ parentLabel: null,
6141
+ query: ""
6142
+ };
6083
6143
 
6084
6144
  // src/molecules/CommandPalette/rankCommands.ts
6085
- var isCommandElement = (node, CommandType) => React61.isValidElement(node) && node.type === CommandType;
6145
+ var isCommandElement = (node, CommandType) => React62.isValidElement(node) && node.type === CommandType;
6086
6146
  var rankChildren = (children, query, CommandType) => {
6087
- const flat = React61.Children.toArray(children);
6147
+ const flat = React62.Children.toArray(children);
6088
6148
  if (!query) {
6089
6149
  return flat;
6090
6150
  }
@@ -6138,7 +6198,34 @@ var reducer2 = (state, action) => {
6138
6198
  case 3 /* Open */:
6139
6199
  return { ...state, isOpen: true };
6140
6200
  case 4 /* Close */:
6141
- return { ...state, isOpen: false };
6201
+ return { ...state, isOpen: false, levelStack: [ROOT_LEVEL] };
6202
+ case 5 /* PushLevel */:
6203
+ return {
6204
+ ...state,
6205
+ levelStack: [
6206
+ ...state.levelStack,
6207
+ {
6208
+ parentId: action.parentId,
6209
+ parentLabel: action.parentLabel,
6210
+ placeholder: action.placeholder,
6211
+ query: ""
6212
+ }
6213
+ ]
6214
+ };
6215
+ case 6 /* PopLevel */:
6216
+ return state.levelStack.length > 1 ? { ...state, levelStack: state.levelStack.slice(0, -1) } : state;
6217
+ case 7 /* PopToIndex */:
6218
+ if (action.index < 0 || action.index >= state.levelStack.length - 1) {
6219
+ return state;
6220
+ }
6221
+ return { ...state, levelStack: state.levelStack.slice(0, action.index + 1) };
6222
+ case 8 /* SetQuery */: {
6223
+ const top = state.levelStack.length - 1;
6224
+ return {
6225
+ ...state,
6226
+ levelStack: state.levelStack.map((lvl, i) => i === top ? { ...lvl, query: action.query } : lvl)
6227
+ };
6228
+ }
6142
6229
  default:
6143
6230
  throw new Error("Unsupported action type.");
6144
6231
  }
@@ -6170,12 +6257,27 @@ var CommandPaletteProvider = ({
6170
6257
  marginTop = "100px",
6171
6258
  placeholder = "Search commands...",
6172
6259
  emptyState,
6260
+ isDisabled = false,
6173
6261
  onOpenChange,
6174
6262
  onInputChange
6175
6263
  }) => {
6176
- const [state, dispatch] = useReducer2(reducer2, { registrations: [], isOpen: false });
6264
+ const [state, dispatch] = useReducer2(reducer2, { registrations: [], isOpen: false, levelStack: [ROOT_LEVEL] });
6265
+ const guardedDispatch = useCallback(
6266
+ (action) => {
6267
+ if (isDisabled && action.type === 3 /* Open */) {
6268
+ return;
6269
+ }
6270
+ dispatch(action);
6271
+ },
6272
+ [isDisabled]
6273
+ );
6274
+ useEffect6(() => {
6275
+ if (isDisabled && state.isOpen) {
6276
+ dispatch({ type: 4 /* Close */ });
6277
+ }
6278
+ }, [isDisabled, state.isOpen]);
6177
6279
  useEffect6(() => {
6178
- if (shortcut === null) {
6280
+ if (shortcut === null || isDisabled) {
6179
6281
  return;
6180
6282
  }
6181
6283
  const handleKeyDown = (e) => {
@@ -6186,7 +6288,7 @@ var CommandPaletteProvider = ({
6186
6288
  };
6187
6289
  document.addEventListener("keydown", handleKeyDown);
6188
6290
  return () => document.removeEventListener("keydown", handleKeyDown);
6189
- }, [shortcut, state.isOpen]);
6291
+ }, [shortcut, state.isOpen, isDisabled]);
6190
6292
  const isInitialMount = useRef7(true);
6191
6293
  useEffect6(() => {
6192
6294
  if (isInitialMount.current) {
@@ -6195,7 +6297,7 @@ var CommandPaletteProvider = ({
6195
6297
  }
6196
6298
  onOpenChange?.(state.isOpen);
6197
6299
  }, [state.isOpen]);
6198
- return /* @__PURE__ */ React62.createElement(CommandPaletteContext.Provider, { value: [state, dispatch] }, children, /* @__PURE__ */ React62.createElement(
6300
+ return /* @__PURE__ */ React63.createElement(CommandPaletteContext.Provider, { value: [state, guardedDispatch] }, children, !isDisabled && /* @__PURE__ */ React63.createElement(
6199
6301
  CommandPaletteOverlay,
6200
6302
  {
6201
6303
  marginTop,
@@ -6205,6 +6307,23 @@ var CommandPaletteProvider = ({
6205
6307
  }
6206
6308
  ));
6207
6309
  };
6310
+ var BackMenuItem = ({ label, onBack }) => {
6311
+ const styles = commandPaletteStyles();
6312
+ return /* @__PURE__ */ React63.createElement(
6313
+ AriaMenuItem2,
6314
+ {
6315
+ id: "__command-palette-back",
6316
+ textValue: `${STATIC_ITEM_MARKER}Back`,
6317
+ className: (values) => dropdownMenuItemStyles({
6318
+ ...values,
6319
+ className: styles.breadcrumbHeader()
6320
+ }),
6321
+ onAction: onBack
6322
+ },
6323
+ /* @__PURE__ */ React63.createElement(InlineIcon, { icon: chevronLeft_default, className: styles.breadcrumbBackButton() }),
6324
+ /* @__PURE__ */ React63.createElement("span", null, label)
6325
+ );
6326
+ };
6208
6327
  var CommandPaletteOverlay = ({
6209
6328
  marginTop,
6210
6329
  placeholder,
@@ -6212,28 +6331,49 @@ var CommandPaletteOverlay = ({
6212
6331
  onInputChange
6213
6332
  }) => {
6214
6333
  const [state, dispatch] = useCommandPaletteRootContext();
6215
- const [query, setQuery] = useState6("");
6216
6334
  const styles = commandPaletteStyles();
6217
6335
  const { overlay, dialog } = modalStyles({ kind: "dialog" });
6218
- useEffect6(() => {
6219
- if (!state.isOpen) {
6220
- setQuery("");
6221
- }
6222
- }, [state.isOpen]);
6336
+ const depth = state.levelStack.length - 1;
6337
+ const currentLevel = state.levelStack[depth];
6338
+ const levelPlaceholder = currentLevel.placeholder ?? placeholder;
6339
+ const menuChildren = useMemo3(() => {
6340
+ if (currentLevel.parentId === null) {
6341
+ return state.registrations.map((registration) => /* @__PURE__ */ React63.createElement(React63.Fragment, { key: registration.id }, registration.children));
6342
+ }
6343
+ return findSubCommands(state.registrations, currentLevel.parentId);
6344
+ }, [state.registrations, currentLevel.parentId]);
6223
6345
  const handleOpenChange = (isOpen) => {
6346
+ if (!isOpen && depth > 0) {
6347
+ dispatch({ type: 6 /* PopLevel */ });
6348
+ return;
6349
+ }
6224
6350
  dispatch(isOpen ? { type: 3 /* Open */ } : { type: 4 /* Close */ });
6225
6351
  };
6226
- const handleAction = () => {
6352
+ const handleMenuAction = (key) => {
6353
+ if (key === "__command-palette-back") {
6354
+ return;
6355
+ }
6356
+ const element = findCommandInRegistrations(state.registrations, String(key));
6357
+ if (element !== null && containsCommand(element.props.children)) {
6358
+ const props = element.props;
6359
+ dispatch({
6360
+ type: 5 /* PushLevel */,
6361
+ parentId: String(key),
6362
+ parentLabel: props.label,
6363
+ placeholder: props.subPlaceholder
6364
+ });
6365
+ return;
6366
+ }
6227
6367
  dispatch({ type: 4 /* Close */ });
6228
6368
  };
6229
6369
  const handleSearchChange = (value) => {
6230
- setQuery(value);
6370
+ dispatch({ type: 8 /* SetQuery */, query: value });
6231
6371
  onInputChange?.(value);
6232
6372
  };
6233
6373
  if (!state.isOpen) {
6234
6374
  return null;
6235
6375
  }
6236
- return /* @__PURE__ */ React62.createElement(CommandPaletteQueryContext.Provider, { value: query }, /* @__PURE__ */ React62.createElement(
6376
+ return /* @__PURE__ */ React63.createElement(CommandPaletteQueryContext.Provider, { value: currentLevel.query }, /* @__PURE__ */ React63.createElement(
6237
6377
  AriaModalOverlay,
6238
6378
  {
6239
6379
  isOpen: state.isOpen,
@@ -6241,28 +6381,35 @@ var CommandPaletteOverlay = ({
6241
6381
  isDismissable: true,
6242
6382
  className: overlay({ className: "Aquarium-CommandPalette items-start" })
6243
6383
  },
6244
- /* @__PURE__ */ React62.createElement(Modal.BackDrop, null),
6245
- /* @__PURE__ */ React62.createElement(AriaModal, { className: styles.modal(), style: marginTop ? { marginTop } : void 0 }, /* @__PURE__ */ React62.createElement(AriaDialog, { "aria-label": "Command palette", className: dialog({ className: styles.dialog() }) }, /* @__PURE__ */ React62.createElement(AriaAutocomplete, { filter: autocompleteFilter }, /* @__PURE__ */ React62.createElement(
6246
- AriaSearchField,
6384
+ /* @__PURE__ */ React63.createElement(Modal.BackDrop, null),
6385
+ /* @__PURE__ */ React63.createElement(AriaModal, { className: styles.modal(), style: marginTop ? { marginTop } : void 0 }, /* @__PURE__ */ React63.createElement(AriaDialog, { "aria-label": "Command palette", className: dialog({ className: styles.dialog() }) }, /* @__PURE__ */ React63.createElement(
6386
+ AriaAutocomplete,
6247
6387
  {
6248
- autoFocus: true,
6249
- "aria-label": "Search commands",
6250
- className: styles.searchContainer(),
6251
- onChange: handleSearchChange
6388
+ key: depth,
6389
+ filter: autocompleteFilter,
6390
+ defaultInputValue: currentLevel.query,
6391
+ onInputChange: handleSearchChange
6252
6392
  },
6253
- /* @__PURE__ */ React62.createElement(SearchIcon, { "aria-hidden": true }),
6254
- /* @__PURE__ */ React62.createElement(AriaInput, { placeholder, className: styles.searchInput() })
6255
- ), /* @__PURE__ */ React62.createElement(
6256
- AriaMenu2,
6257
- {
6258
- onAction: handleAction,
6259
- className: dropdownMenuStyles({
6260
- className: "Aquarium-CommandPalette.List flex-1 min-h-0 p-3 overflow-y-auto"
6261
- }),
6262
- renderEmptyState: () => /* @__PURE__ */ React62.createElement(CommandPalette.EmptyState, null, emptyState)
6263
- },
6264
- state.registrations.map((registration) => /* @__PURE__ */ React62.createElement(React62.Fragment, { key: registration.id }, registration.children))
6265
- ))))
6393
+ /* @__PURE__ */ React63.createElement(AriaSearchField, { autoFocus: true, "aria-label": "Search commands", className: styles.searchContainer() }, /* @__PURE__ */ React63.createElement(SearchIcon, { "aria-hidden": true }), /* @__PURE__ */ React63.createElement(AriaInput, { placeholder: levelPlaceholder, className: styles.searchInput() })),
6394
+ /* @__PURE__ */ React63.createElement(
6395
+ AriaMenu2,
6396
+ {
6397
+ onAction: handleMenuAction,
6398
+ className: dropdownMenuStyles({
6399
+ className: "Aquarium-CommandPalette.List flex-1 min-h-0 p-3 overflow-y-auto"
6400
+ }),
6401
+ renderEmptyState: () => /* @__PURE__ */ React63.createElement(CommandPalette.EmptyState, null, emptyState)
6402
+ },
6403
+ depth > 0 && currentLevel.parentLabel && /* @__PURE__ */ React63.createElement(AriaMenuSection2, null, /* @__PURE__ */ React63.createElement(
6404
+ BackMenuItem,
6405
+ {
6406
+ label: currentLevel.parentLabel,
6407
+ onBack: () => dispatch({ type: 6 /* PopLevel */ })
6408
+ }
6409
+ )),
6410
+ menuChildren
6411
+ )
6412
+ )))
6266
6413
  ));
6267
6414
  };
6268
6415
 
@@ -6285,35 +6432,47 @@ Commands.displayName = "CommandPalette.Commands";
6285
6432
  var Section = ({ title, items, children, ...props }) => {
6286
6433
  const groupStyles = dropdownMenuGroupStyles();
6287
6434
  const query = useCommandPaletteQuery();
6288
- const renderShell = (content) => /* @__PURE__ */ React63.createElement(AriaMenuSection2, { className: groupStyles.base({ className: "Aquarium-CommandPalette.Section" }), ...props }, title && /* @__PURE__ */ React63.createElement(AriaHeader2, { className: groupStyles.title() }, title), content);
6435
+ const renderShell = (content) => /* @__PURE__ */ React64.createElement(AriaMenuSection3, { className: groupStyles.base({ className: "Aquarium-CommandPalette.Section" }), ...props }, title && /* @__PURE__ */ React64.createElement(AriaHeader2, { className: groupStyles.title() }, title), content);
6289
6436
  if (items || typeof children === "function") {
6290
6437
  return renderShell(
6291
- items ? /* @__PURE__ */ React63.createElement(AriaCollection2, { items }, children) : /* @__PURE__ */ React63.createElement(AriaCollection2, null, children)
6438
+ items ? /* @__PURE__ */ React64.createElement(AriaCollection2, { items }, children) : /* @__PURE__ */ React64.createElement(AriaCollection2, null, children)
6292
6439
  );
6293
6440
  }
6294
6441
  if (!query) {
6295
- return renderShell(/* @__PURE__ */ React63.createElement(AriaCollection2, null, children));
6442
+ return renderShell(/* @__PURE__ */ React64.createElement(AriaCollection2, null, children));
6296
6443
  }
6297
6444
  const ranked = rankChildren(children, query, Command);
6298
6445
  if (ranked.length === 0) {
6299
6446
  return null;
6300
6447
  }
6301
- return renderShell(/* @__PURE__ */ React63.createElement(AriaCollection2, null, ranked));
6448
+ return renderShell(/* @__PURE__ */ React64.createElement(AriaCollection2, null, ranked));
6302
6449
  };
6303
6450
  Section.displayName = "CommandPalette.Section";
6304
- var Command = ({ className, icon, label, keywords, disabled, static: isStatic, ...props }) => {
6451
+ var Command = ({
6452
+ className,
6453
+ icon,
6454
+ label,
6455
+ keywords,
6456
+ disabled,
6457
+ static: isStatic,
6458
+ subPlaceholder: _subPlaceholder,
6459
+ ...props
6460
+ }) => {
6305
6461
  const styles = commandPaletteStyles();
6306
- const textValue = props.textValue || label || (typeof props.children === "string" ? props.children : void 0);
6462
+ const isParent = typeof props.children !== "function" && containsCommand(props.children);
6463
+ const textValue = props.textValue || label;
6307
6464
  const resolvedTextValue = [textValue, ...keywords ?? []].filter(Boolean).join(FIELD_SEPARATOR);
6308
- return /* @__PURE__ */ React63.createElement(
6309
- AriaMenuItem2,
6465
+ const { children: _children, onAction: consumerOnAction, ...restProps } = props;
6466
+ const ariaProps = isParent ? restProps : { ...restProps, onAction: consumerOnAction };
6467
+ return /* @__PURE__ */ React64.createElement(
6468
+ AriaMenuItem3,
6310
6469
  {
6311
6470
  className: (values) => dropdownMenuItemStyles({ ...values, className: ["Aquarium-CommandPalette.Item", className] }),
6312
6471
  textValue: isStatic ? `${STATIC_ITEM_MARKER}${resolvedTextValue}` : resolvedTextValue,
6313
6472
  isDisabled: disabled,
6314
- ...props
6473
+ ...ariaProps
6315
6474
  },
6316
- composeRenderProps3(props.children, (children) => /* @__PURE__ */ React63.createElement(React63.Fragment, null, icon && /* @__PURE__ */ React63.createElement(InlineIcon, { icon, className: styles.itemIcon() }), /* @__PURE__ */ React63.createElement("span", { className: "grow" }, label || children)))
6475
+ composeRenderProps3(isParent ? void 0 : props.children, (children) => /* @__PURE__ */ React64.createElement(React64.Fragment, null, icon && /* @__PURE__ */ React64.createElement(InlineIcon, { icon, className: styles.itemIcon() }), /* @__PURE__ */ React64.createElement("span", { className: "grow" }, label || children), isParent && /* @__PURE__ */ React64.createElement(InlineIcon, { icon: chevronRight_default, className: styles.itemIcon() })))
6317
6476
  );
6318
6477
  };
6319
6478
  Command.displayName = "CommandPalette.Command";
@@ -6325,9 +6484,9 @@ var CommandPalette2 = {
6325
6484
  };
6326
6485
 
6327
6486
  // src/molecules/Container/Container.tsx
6328
- import React64 from "react";
6487
+ import React65 from "react";
6329
6488
  import { clsx as clsx20 } from "clsx";
6330
- var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React64.createElement(
6489
+ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React65.createElement(
6331
6490
  Box,
6332
6491
  {
6333
6492
  marginLeft: "auto",
@@ -6346,23 +6505,23 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React64.crea
6346
6505
  );
6347
6506
 
6348
6507
  // src/molecules/DataList/DataList.tsx
6349
- import React82, { useRef as useRef10 } from "react";
6508
+ import React83, { useRef as useRef10 } from "react";
6350
6509
  import { useControlledState as useControlledState3 } from "@react-stately/utils";
6351
6510
  import { clsx as clsx26 } from "clsx";
6352
6511
  import { castArray as castArray3, compact, groupBy as groupBy2, isArray as isArray2, isFunction as isFunction3, noop as noop2 } from "lodash-es";
6353
6512
 
6354
6513
  // src/molecules/List/List.tsx
6355
- import React69 from "react";
6514
+ import React70 from "react";
6356
6515
  import { clsx as clsx23 } from "clsx";
6357
6516
  import { isObject, isString as isString2 } from "lodash-es";
6358
6517
 
6359
6518
  // src/molecules/Pagination/Pagination.tsx
6360
- import React67 from "react";
6519
+ import React68 from "react";
6361
6520
  import { clsx as clsx22 } from "clsx";
6362
6521
  import { clamp } from "lodash-es";
6363
6522
 
6364
6523
  // src/molecules/Input/Input.tsx
6365
- import React65, { forwardRef, useCallback as useCallback2, useImperativeHandle, useState as useState7 } from "react";
6524
+ import React66, { forwardRef, useCallback as useCallback2, useImperativeHandle, useState as useState6 } from "react";
6366
6525
  import { useId as useId7 } from "@react-aria/utils";
6367
6526
  import { clsx as clsx21 } from "clsx";
6368
6527
  import { omit as omit5, toString } from "lodash-es";
@@ -6379,7 +6538,7 @@ var createInput = (displayName, opts = {}) => {
6379
6538
  ...props
6380
6539
  }, ref) => {
6381
6540
  const inputType = opts.isSearch ? "search" : opts.isFile ? "file" : type;
6382
- const inputRef = React65.useRef(null);
6541
+ const inputRef = React66.useRef(null);
6383
6542
  useImperativeHandle(ref, () => inputRef.current);
6384
6543
  const handleReset = (e) => {
6385
6544
  if (opts.isFile) {
@@ -6394,7 +6553,7 @@ var createInput = (displayName, opts = {}) => {
6394
6553
  el.focus();
6395
6554
  }
6396
6555
  };
6397
- return /* @__PURE__ */ React65.createElement("span", { className: "Aquarium-InputBase relative block" }, opts.adornment && /* @__PURE__ */ React65.createElement(InputAdornment, { placement: "left", className: opts.isFile ? "icon-stroke-2" : void 0 }, opts.adornment), /* @__PURE__ */ React65.createElement(
6556
+ return /* @__PURE__ */ React66.createElement("span", { className: "Aquarium-InputBase relative block" }, opts.adornment && /* @__PURE__ */ React66.createElement(InputAdornment, { placement: "left", className: opts.isFile ? "icon-stroke-2" : void 0 }, opts.adornment), /* @__PURE__ */ React66.createElement(
6398
6557
  "input",
6399
6558
  {
6400
6559
  ref: inputRef,
@@ -6415,30 +6574,30 @@ var createInput = (displayName, opts = {}) => {
6415
6574
  })
6416
6575
  })
6417
6576
  }
6418
- ), opts.canReset && (props.value ?? inputRef.current?.value) && /* @__PURE__ */ React65.createElement(InputAdornment, null, /* @__PURE__ */ React65.createElement("button", { "aria-label": "reset search", onClick: handleReset }, /* @__PURE__ */ React65.createElement(ResetIcon, null))), !opts.canReset && endAdornment && /* @__PURE__ */ React65.createElement(InputAdornment, null, endAdornment));
6577
+ ), opts.canReset && (props.value ?? inputRef.current?.value) && /* @__PURE__ */ React66.createElement(InputAdornment, null, /* @__PURE__ */ React66.createElement("button", { "aria-label": "reset search", onClick: handleReset }, /* @__PURE__ */ React66.createElement(ResetIcon, null))), !opts.canReset && endAdornment && /* @__PURE__ */ React66.createElement(InputAdornment, null, endAdornment));
6419
6578
  }
6420
6579
  );
6421
6580
  InputComponent.displayName = displayName;
6422
- InputComponent.Skeleton = () => /* @__PURE__ */ React65.createElement(Skeleton, { height: 38 });
6581
+ InputComponent.Skeleton = () => /* @__PURE__ */ React66.createElement(Skeleton, { height: 38 });
6423
6582
  return InputComponent;
6424
6583
  };
6425
6584
  var InputBase = createInput("InputBase");
6426
6585
  var FileInputBase = createInput("FileInputBase", {
6427
- adornment: /* @__PURE__ */ React65.createElement(UploadIcon, null),
6586
+ adornment: /* @__PURE__ */ React66.createElement(UploadIcon, null),
6428
6587
  canReset: true,
6429
6588
  isFile: true
6430
6589
  });
6431
6590
  var SearchInput = createInput("SearchInput", {
6432
- adornment: /* @__PURE__ */ React65.createElement(SearchIcon, null),
6591
+ adornment: /* @__PURE__ */ React66.createElement(SearchIcon, null),
6433
6592
  canReset: true,
6434
6593
  isSearch: true
6435
6594
  });
6436
6595
  var createInputComponent = (displayName, options = {}) => {
6437
6596
  const InputComponentBase = options.input ?? InputBase;
6438
- const InputComponent = React65.forwardRef((inputProps, ref) => {
6597
+ const InputComponent = React66.forwardRef((inputProps, ref) => {
6439
6598
  const { readOnly = false, value: valueProp, onChange: onChangeProp, ...props } = inputProps;
6440
6599
  const isControlled = typeof valueProp !== "undefined";
6441
- const [valueState, setValueState] = useState7(props.defaultValue ?? "");
6600
+ const [valueState, setValueState] = useState6(props.defaultValue ?? "");
6442
6601
  const value = isControlled ? valueProp : valueState;
6443
6602
  const handleChange = useCallback2(
6444
6603
  (e) => {
@@ -6459,7 +6618,7 @@ var createInputComponent = (displayName, options = {}) => {
6459
6618
  inputProps,
6460
6619
  Object.keys(labelControlProps).concat(isControlled ? ["defaultValue"] : ["value"])
6461
6620
  );
6462
- return /* @__PURE__ */ React65.createElement(
6621
+ return /* @__PURE__ */ React66.createElement(
6463
6622
  LabelControl,
6464
6623
  {
6465
6624
  id: `${id}-label`,
@@ -6469,7 +6628,7 @@ var createInputComponent = (displayName, options = {}) => {
6469
6628
  ...labelControlProps,
6470
6629
  className: "Aquarium-Input"
6471
6630
  },
6472
- /* @__PURE__ */ React65.createElement(
6631
+ /* @__PURE__ */ React66.createElement(
6473
6632
  InputComponentBase,
6474
6633
  {
6475
6634
  ref,
@@ -6492,11 +6651,11 @@ var createInputComponent = (displayName, options = {}) => {
6492
6651
  };
6493
6652
  var FileInput = createInputComponent("FileInput", { input: FileInputBase });
6494
6653
  var Input2 = createInputComponent("Input", { input: InputBase });
6495
- Input2.Skeleton = () => /* @__PURE__ */ React65.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React65.createElement(InputBase.Skeleton, null));
6654
+ Input2.Skeleton = () => /* @__PURE__ */ React66.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React66.createElement(InputBase.Skeleton, null));
6496
6655
  Input2.Skeleton.displayName = "Input.Skeleton";
6497
6656
 
6498
6657
  // src/molecules/Select/Select.tsx
6499
- import React66, { useEffect as useEffect8, useRef as useRef8, useState as useState8 } from "react";
6658
+ import React67, { useEffect as useEffect8, useRef as useRef8, useState as useState7 } from "react";
6500
6659
  import { ariaHideOutside as ariaHideOutside2 } from "@react-aria/overlays";
6501
6660
  import { useId as useId8 } from "@react-aria/utils";
6502
6661
  import { useSelect } from "downshift";
@@ -6504,14 +6663,14 @@ import { defaults, isNil as isNil2, omit as omit6, without } from "lodash-es";
6504
6663
  var hasIconProperty = (val) => {
6505
6664
  return typeof val === "string" || val?.icon?.body !== void 0;
6506
6665
  };
6507
- var defaultRenderOption = (item, props, { selectedItem }, { getOptionKey, getValue, optionToString = getOptionLabelBuiltin }) => /* @__PURE__ */ React66.createElement(
6666
+ var defaultRenderOption = (item, props, { selectedItem }, { getOptionKey, getValue, optionToString = getOptionLabelBuiltin }) => /* @__PURE__ */ React67.createElement(
6508
6667
  Select.Item,
6509
6668
  {
6510
6669
  key: getOptionKey?.(item) ?? getValue?.(item) ?? optionToString(item),
6511
6670
  selected: item === selectedItem,
6512
6671
  ...props
6513
6672
  },
6514
- hasIconProperty(item) && /* @__PURE__ */ React66.createElement(InlineIcon, { icon: item.icon }),
6673
+ hasIconProperty(item) && /* @__PURE__ */ React67.createElement(InlineIcon, { icon: item.icon }),
6515
6674
  optionToString(item)
6516
6675
  );
6517
6676
  var _SelectBase = (props) => {
@@ -6548,7 +6707,7 @@ var _SelectBase = (props) => {
6548
6707
  children,
6549
6708
  ...rest
6550
6709
  } = withDefaults;
6551
- const [hasFocus, setFocus] = useState8(false);
6710
+ const [hasFocus, setFocus] = useState7(false);
6552
6711
  const inputRef = useRef8(null);
6553
6712
  const popoverRef = useRef8(null);
6554
6713
  const targetRef = useRef8(null);
@@ -6601,15 +6760,15 @@ var _SelectBase = (props) => {
6601
6760
  },
6602
6761
  withDefaults
6603
6762
  );
6604
- const renderGroup = (group) => /* @__PURE__ */ React66.createElement(React66.Fragment, { key: group.label }, /* @__PURE__ */ React66.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
6605
- const input = /* @__PURE__ */ React66.createElement(
6763
+ const renderGroup = (group) => /* @__PURE__ */ React67.createElement(React67.Fragment, { key: group.label }, /* @__PURE__ */ React67.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
6764
+ const input = /* @__PURE__ */ React67.createElement(
6606
6765
  Select.InputContainer,
6607
6766
  {
6608
6767
  ...getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef }),
6609
6768
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default",
6610
6769
  tabIndex: 0
6611
6770
  },
6612
- /* @__PURE__ */ React66.createElement(
6771
+ /* @__PURE__ */ React67.createElement(
6613
6772
  Select.Input,
6614
6773
  {
6615
6774
  id,
@@ -6626,10 +6785,10 @@ var _SelectBase = (props) => {
6626
6785
  onBlur: () => setFocus(false)
6627
6786
  }
6628
6787
  ),
6629
- !readOnly && /* @__PURE__ */ React66.createElement(Select.Toggle, { disabled, isOpen, tabIndex: -1 })
6788
+ !readOnly && /* @__PURE__ */ React67.createElement(Select.Toggle, { disabled, isOpen, tabIndex: -1 })
6630
6789
  );
6631
6790
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
6632
- return /* @__PURE__ */ React66.createElement("div", { className: "Aquarium-SelectBase relative" }, input, /* @__PURE__ */ React66.createElement(
6791
+ return /* @__PURE__ */ React67.createElement("div", { className: "Aquarium-SelectBase relative" }, input, /* @__PURE__ */ React67.createElement(
6633
6792
  Popover,
6634
6793
  {
6635
6794
  ref: popoverRef,
@@ -6640,7 +6799,7 @@ var _SelectBase = (props) => {
6640
6799
  isNonModal: true,
6641
6800
  style: { width: targetRef.current?.offsetWidth }
6642
6801
  },
6643
- /* @__PURE__ */ React66.createElement(Select.Menu, { maxHeight, ...menuProps }, options.length === 0 && /* @__PURE__ */ React66.createElement(Select.EmptyStateContainer, null, emptyState), options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), actions2.length > 0 && /* @__PURE__ */ React66.createElement(React66.Fragment, null, /* @__PURE__ */ React66.createElement(Select.Divider, { onMouseOver: () => setHighlightedIndex(-1) }), actions2.map((act, index) => /* @__PURE__ */ React66.createElement(
6802
+ /* @__PURE__ */ React67.createElement(Select.Menu, { maxHeight, ...menuProps }, options.length === 0 && /* @__PURE__ */ React67.createElement(Select.EmptyStateContainer, null, emptyState), options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), actions2.length > 0 && /* @__PURE__ */ React67.createElement(React67.Fragment, null, /* @__PURE__ */ React67.createElement(Select.Divider, { onMouseOver: () => setHighlightedIndex(-1) }), actions2.map((act, index) => /* @__PURE__ */ React67.createElement(
6644
6803
  Select.ActionItem,
6645
6804
  {
6646
6805
  key: `${index}`,
@@ -6655,8 +6814,8 @@ var _SelectBase = (props) => {
6655
6814
  ))))
6656
6815
  ));
6657
6816
  };
6658
- var SelectBase = (props) => /* @__PURE__ */ React66.createElement(_SelectBase, { ...props });
6659
- var SelectBaseSkeleton = () => /* @__PURE__ */ React66.createElement(Skeleton, { height: 38 });
6817
+ var SelectBase = (props) => /* @__PURE__ */ React67.createElement(_SelectBase, { ...props });
6818
+ var SelectBaseSkeleton = () => /* @__PURE__ */ React67.createElement(Skeleton, { height: 38 });
6660
6819
  SelectBase.Skeleton = SelectBaseSkeleton;
6661
6820
  var Select2 = ({
6662
6821
  options,
@@ -6668,7 +6827,7 @@ var Select2 = ({
6668
6827
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
6669
6828
  const labelProps = getLabelControlProps(props);
6670
6829
  const baseProps = omit6(props, without(Object.keys(labelProps), "required"));
6671
- return /* @__PURE__ */ React66.createElement(
6830
+ return /* @__PURE__ */ React67.createElement(
6672
6831
  LabelControl,
6673
6832
  {
6674
6833
  id: `${id}-label`,
@@ -6677,7 +6836,7 @@ var Select2 = ({
6677
6836
  ...labelProps,
6678
6837
  className: "Aquarium-Select"
6679
6838
  },
6680
- /* @__PURE__ */ React66.createElement(
6839
+ /* @__PURE__ */ React67.createElement(
6681
6840
  _SelectBase,
6682
6841
  {
6683
6842
  ...baseProps,
@@ -6690,7 +6849,7 @@ var Select2 = ({
6690
6849
  )
6691
6850
  );
6692
6851
  };
6693
- var SelectSkeleton = () => /* @__PURE__ */ React66.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React66.createElement(SelectBase.Skeleton, null));
6852
+ var SelectSkeleton = () => /* @__PURE__ */ React67.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React67.createElement(SelectBase.Skeleton, null));
6694
6853
  Select2.Skeleton = SelectSkeleton;
6695
6854
  Select2.Skeleton.displayName = "Select.Skeleton";
6696
6855
 
@@ -6705,11 +6864,11 @@ var Pagination = ({
6705
6864
  pageSizes,
6706
6865
  onPageSizeChange
6707
6866
  }) => {
6708
- const [value, setValue] = React67.useState(currentPage);
6709
- React67.useEffect(() => {
6867
+ const [value, setValue] = React68.useState(currentPage);
6868
+ React68.useEffect(() => {
6710
6869
  setValue(currentPage);
6711
6870
  }, [currentPage]);
6712
- return /* @__PURE__ */ React67.createElement(
6871
+ return /* @__PURE__ */ React68.createElement(
6713
6872
  Box,
6714
6873
  {
6715
6874
  className: clsx22("Aquarium-Pagination", {
@@ -6719,7 +6878,7 @@ var Pagination = ({
6719
6878
  backgroundColor: "muted",
6720
6879
  padding: "4"
6721
6880
  },
6722
- pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React67.createElement(Box, { display: "flex", alignItems: "center", gap: "4" }, /* @__PURE__ */ React67.createElement(Typography2.Default, { color: "muted" }, "Items per page "), /* @__PURE__ */ React67.createElement("div", { className: "max-w-[70px]" }, /* @__PURE__ */ React67.createElement(
6881
+ pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React68.createElement(Box, { display: "flex", alignItems: "center", gap: "4" }, /* @__PURE__ */ React68.createElement(Typography2.Default, { color: "muted" }, "Items per page "), /* @__PURE__ */ React68.createElement("div", { className: "max-w-[70px]" }, /* @__PURE__ */ React68.createElement(
6723
6882
  SelectBase,
6724
6883
  {
6725
6884
  "aria-label": "Items per page",
@@ -6734,8 +6893,8 @@ var Pagination = ({
6734
6893
  }
6735
6894
  }
6736
6895
  }
6737
- ))) : /* @__PURE__ */ React67.createElement("div", null),
6738
- /* @__PURE__ */ React67.createElement(Box, { display: "flex", justifyContent: "center", alignItems: "center", className: "grow" }, /* @__PURE__ */ React67.createElement(
6896
+ ))) : /* @__PURE__ */ React68.createElement("div", null),
6897
+ /* @__PURE__ */ React68.createElement(Box, { display: "flex", justifyContent: "center", alignItems: "center", className: "grow" }, /* @__PURE__ */ React68.createElement(
6739
6898
  Button2.Icon,
6740
6899
  {
6741
6900
  "aria-label": "First",
@@ -6743,7 +6902,7 @@ var Pagination = ({
6743
6902
  icon: chevronBackward_default,
6744
6903
  disabled: !hasPreviousPage
6745
6904
  }
6746
- ), /* @__PURE__ */ React67.createElement(
6905
+ ), /* @__PURE__ */ React68.createElement(
6747
6906
  Button2.Icon,
6748
6907
  {
6749
6908
  "aria-label": "Previous",
@@ -6751,7 +6910,7 @@ var Pagination = ({
6751
6910
  icon: chevronLeft_default,
6752
6911
  disabled: !hasPreviousPage
6753
6912
  }
6754
- ), /* @__PURE__ */ React67.createElement(Box, { paddingX: "4" }, /* @__PURE__ */ React67.createElement(Typography2.Default, { color: "default" }, "Page")), /* @__PURE__ */ React67.createElement(
6913
+ ), /* @__PURE__ */ React68.createElement(Box, { paddingX: "4" }, /* @__PURE__ */ React68.createElement(Typography2.Default, { color: "default" }, "Page")), /* @__PURE__ */ React68.createElement(
6755
6914
  InputBase,
6756
6915
  {
6757
6916
  "aria-label": "Page",
@@ -6772,7 +6931,7 @@ var Pagination = ({
6772
6931
  onPageChange(newPage);
6773
6932
  }
6774
6933
  }
6775
- ), /* @__PURE__ */ React67.createElement(Box, { paddingX: "4" }, /* @__PURE__ */ React67.createElement(Typography2.Default, { color: "default" }, "of ", totalPages)), /* @__PURE__ */ React67.createElement(
6934
+ ), /* @__PURE__ */ React68.createElement(Box, { paddingX: "4" }, /* @__PURE__ */ React68.createElement(Typography2.Default, { color: "default" }, "of ", totalPages)), /* @__PURE__ */ React68.createElement(
6776
6935
  Button2.Icon,
6777
6936
  {
6778
6937
  "aria-label": "Next",
@@ -6780,7 +6939,7 @@ var Pagination = ({
6780
6939
  icon: chevronRight_default,
6781
6940
  disabled: !hasNextPage
6782
6941
  }
6783
- ), /* @__PURE__ */ React67.createElement(
6942
+ ), /* @__PURE__ */ React68.createElement(
6784
6943
  Button2.Icon,
6785
6944
  {
6786
6945
  "aria-label": "Last",
@@ -6789,12 +6948,12 @@ var Pagination = ({
6789
6948
  disabled: !hasNextPage
6790
6949
  }
6791
6950
  )),
6792
- pageSizes && /* @__PURE__ */ React67.createElement("div", null)
6951
+ pageSizes && /* @__PURE__ */ React68.createElement("div", null)
6793
6952
  );
6794
6953
  };
6795
6954
 
6796
6955
  // src/molecules/Pagination/usePagination.tsx
6797
- import { useEffect as useEffect9, useState as useState9 } from "react";
6956
+ import { useEffect as useEffect9, useState as useState8 } from "react";
6798
6957
  import { clamp as clamp2 } from "lodash-es";
6799
6958
  var initialState = {
6800
6959
  currentPage: 1,
@@ -6802,8 +6961,8 @@ var initialState = {
6802
6961
  };
6803
6962
  var getPageIndex = (currentPage, pageSize) => currentPage === 0 ? 0 : (currentPage - 1) * pageSize;
6804
6963
  var usePagination = (items, options) => {
6805
- const [currentPage, setCurrentPage] = useState9(options?.initialPage ?? initialState.currentPage);
6806
- const [pageSize, setPageSize] = useState9(options?.initialPageSize ?? initialState.pageSize);
6964
+ const [currentPage, setCurrentPage] = useState8(options?.initialPage ?? initialState.currentPage);
6965
+ const [pageSize, setPageSize] = useState8(options?.initialPageSize ?? initialState.pageSize);
6807
6966
  const totalPages = items.length > 0 ? Math.ceil(items.length / pageSize) : 1;
6808
6967
  const hasPreviousPage = currentPage > 1;
6809
6968
  const hasNextPage = currentPage < totalPages;
@@ -6831,7 +6990,7 @@ var usePagination = (items, options) => {
6831
6990
  };
6832
6991
 
6833
6992
  // src/utils/useInView.ts
6834
- import React68 from "react";
6993
+ import React69 from "react";
6835
6994
  var useInView = ({
6836
6995
  onChange,
6837
6996
  skip,
@@ -6839,12 +6998,12 @@ var useInView = ({
6839
6998
  rootMargin,
6840
6999
  threshold = 0
6841
7000
  }) => {
6842
- const ref = React68.useRef(null);
6843
- const [state, setState] = React68.useState({
7001
+ const ref = React69.useRef(null);
7002
+ const [state, setState] = React69.useState({
6844
7003
  inView: false,
6845
7004
  entry: void 0
6846
7005
  });
6847
- React68.useEffect(() => {
7006
+ React69.useEffect(() => {
6848
7007
  const target = ref.current;
6849
7008
  if (skip || !target) {
6850
7009
  return;
@@ -6876,8 +7035,8 @@ var useInView = ({
6876
7035
  var List = ({
6877
7036
  items,
6878
7037
  renderItem,
6879
- container: container2 = React69.Fragment,
6880
- paginationContainer = React69.Fragment,
7038
+ container: container2 = React70.Fragment,
7039
+ paginationContainer = React70.Fragment,
6881
7040
  pagination,
6882
7041
  loadingIndicator = "Loading more items",
6883
7042
  hasMore,
@@ -6888,7 +7047,7 @@ var List = ({
6888
7047
  const Component = container2;
6889
7048
  const PaginationComponent = paginationContainer;
6890
7049
  const paginationProps = isObject(pagination) ? pagination : void 0;
6891
- const onChange = React69.useCallback(
7050
+ const onChange = React70.useCallback(
6892
7051
  (inView) => {
6893
7052
  if (inView && hasMore && !isLoading) {
6894
7053
  next();
@@ -6907,7 +7066,7 @@ var List = ({
6907
7066
  const listItems = pagination ? paginatedItems : items;
6908
7067
  const showLoader = isInfinite && hasMore;
6909
7068
  const showPagination = pagination || showLoader;
6910
- return /* @__PURE__ */ React69.createElement(React69.Fragment, null, /* @__PURE__ */ React69.createElement(Component, null, listItems.map(renderItem)), showPagination && /* @__PURE__ */ React69.createElement(PaginationComponent, null, showLoader && /* @__PURE__ */ React69.createElement(
7069
+ return /* @__PURE__ */ React70.createElement(React70.Fragment, null, /* @__PURE__ */ React70.createElement(Component, null, listItems.map(renderItem)), showPagination && /* @__PURE__ */ React70.createElement(PaginationComponent, null, showLoader && /* @__PURE__ */ React70.createElement(
6911
7070
  "div",
6912
7071
  {
6913
7072
  ref,
@@ -6919,21 +7078,21 @@ var List = ({
6919
7078
  isLoading ? "opacity-100" : "opacity-0"
6920
7079
  )
6921
7080
  },
6922
- /* @__PURE__ */ React69.createElement(Icon, { width: 22, icon: loading_default, className: "text-muted" }),
6923
- /* @__PURE__ */ React69.createElement(Typography2.Default, { color: "default" }, loadingIndicator)
6924
- ), pagination && /* @__PURE__ */ React69.createElement(Pagination, { ...paginationState, ...paginationProps })));
7081
+ /* @__PURE__ */ React70.createElement(Icon, { width: 22, icon: loading_default, className: "text-muted" }),
7082
+ /* @__PURE__ */ React70.createElement(Typography2.Default, { color: "default" }, loadingIndicator)
7083
+ ), pagination && /* @__PURE__ */ React70.createElement(Pagination, { ...paginationState, ...paginationProps })));
6925
7084
  };
6926
7085
 
6927
7086
  // src/atoms/DataList/DataList.tsx
6928
- import React71 from "react";
7087
+ import React72 from "react";
6929
7088
  import { clsx as clsx25 } from "clsx";
6930
7089
  import { tv as tv19 } from "tailwind-variants";
6931
7090
 
6932
7091
  // src/atoms/Table/Table.tsx
6933
- import React70 from "react";
7092
+ import React71 from "react";
6934
7093
  import { clsx as clsx24 } from "clsx";
6935
7094
  import { tv as tv18 } from "tailwind-variants";
6936
- var HeadContext = React70.createContext(null);
7095
+ var HeadContext = React71.createContext(null);
6937
7096
  var tableClasses = tv18({
6938
7097
  base: "w-full relative typography-default border-spacing-0 border-separate"
6939
7098
  });
@@ -7044,11 +7203,11 @@ var sortCellIconsContainerClasses = tv18({
7044
7203
  }
7045
7204
  });
7046
7205
  var Table = ({ children, ariaLabel, className, ...rest }) => {
7047
- return /* @__PURE__ */ React70.createElement("table", { ...rest, className: tableClasses({ className }), "aria-label": ariaLabel }, children);
7206
+ return /* @__PURE__ */ React71.createElement("table", { ...rest, className: tableClasses({ className }), "aria-label": ariaLabel }, children);
7048
7207
  };
7049
- var TableHead = ({ children, sticky, ...rest }) => /* @__PURE__ */ React70.createElement("thead", { ...rest }, /* @__PURE__ */ React70.createElement("tr", null, /* @__PURE__ */ React70.createElement(HeadContext.Provider, { value: { children, sticky } }, children)));
7050
- var TableBody = ({ children, ...rest }) => /* @__PURE__ */ React70.createElement("tbody", { ...rest }, children);
7051
- var TableRow = ({ children, className, disabled = false, ...rest }) => /* @__PURE__ */ React70.createElement(
7208
+ var TableHead = ({ children, sticky, ...rest }) => /* @__PURE__ */ React71.createElement("thead", { ...rest }, /* @__PURE__ */ React71.createElement("tr", null, /* @__PURE__ */ React71.createElement(HeadContext.Provider, { value: { children, sticky } }, children)));
7209
+ var TableBody = ({ children, ...rest }) => /* @__PURE__ */ React71.createElement("tbody", { ...rest }, children);
7210
+ var TableRow = ({ children, className, disabled = false, ...rest }) => /* @__PURE__ */ React71.createElement(
7052
7211
  "tr",
7053
7212
  {
7054
7213
  ...rest,
@@ -7060,10 +7219,10 @@ var TableRow = ({ children, className, disabled = false, ...rest }) => /* @__PUR
7060
7219
  var getBodyCellClassNames = (table = true, stickyColumn) => bodyCellClasses({ table, stickyColumn });
7061
7220
  var getAlignClassNames = (align) => alignClasses({ align });
7062
7221
  var getHeadCellClassNames = (sticky = true, stickyColumn) => headCellClasses({ sticky, stickyColumn });
7063
- var TableCell = React70.forwardRef(
7222
+ var TableCell = React71.forwardRef(
7064
7223
  ({ children, className, stickyColumn, align = "left", ...rest }, ref) => {
7065
- const headContext = React70.useContext(HeadContext);
7066
- return headContext ? /* @__PURE__ */ React70.createElement(
7224
+ const headContext = React71.useContext(HeadContext);
7225
+ return headContext ? /* @__PURE__ */ React71.createElement(
7067
7226
  "th",
7068
7227
  {
7069
7228
  ...rest,
@@ -7076,7 +7235,7 @@ var TableCell = React70.forwardRef(
7076
7235
  )
7077
7236
  },
7078
7237
  children
7079
- ) : /* @__PURE__ */ React70.createElement(
7238
+ ) : /* @__PURE__ */ React71.createElement(
7080
7239
  "td",
7081
7240
  {
7082
7241
  ...rest,
@@ -7093,21 +7252,21 @@ var TableCell = React70.forwardRef(
7093
7252
  }
7094
7253
  );
7095
7254
  var TableSelectCell = ({ ariaLabel, ...props }) => {
7096
- return /* @__PURE__ */ React70.createElement(Table.Cell, { className: "leading-[0px]" }, props.type === "radio" ? /* @__PURE__ */ React70.createElement(RadioButton, { "aria-label": ariaLabel, ...props }) : /* @__PURE__ */ React70.createElement(Checkbox, { "aria-label": ariaLabel, ...props }));
7255
+ return /* @__PURE__ */ React71.createElement(Table.Cell, { className: "leading-[0px]" }, props.type === "radio" ? /* @__PURE__ */ React71.createElement(RadioButton, { "aria-label": ariaLabel, ...props }) : /* @__PURE__ */ React71.createElement(Checkbox, { "aria-label": ariaLabel, ...props }));
7097
7256
  };
7098
7257
  var getSortCellButtonClassNames = (align) => sortCellButtonClasses({ align });
7099
7258
  var getSortCellIconClassNames = (active) => sortCellIconClasses({ active });
7100
- var TableSortCell = React70.forwardRef(
7101
- ({ children, direction = "none", onClick, ...rest }, ref) => /* @__PURE__ */ React70.createElement(Table.Cell, { ...rest, "aria-sort": direction, ref }, /* @__PURE__ */ React70.createElement("span", { className: getSortCellButtonClassNames(rest.align), role: "button", tabIndex: -1, onClick }, children, /* @__PURE__ */ React70.createElement("div", { "data-sort-icons": true, className: sortCellIconsContainerClasses({ direction }) }, /* @__PURE__ */ React70.createElement(InlineIcon, { icon: chevronUp_default, className: getSortCellIconClassNames(direction === "ascending") }), /* @__PURE__ */ React70.createElement(InlineIcon, { icon: chevronDown_default, className: getSortCellIconClassNames(direction === "descending") }))))
7259
+ var TableSortCell = React71.forwardRef(
7260
+ ({ children, direction = "none", onClick, ...rest }, ref) => /* @__PURE__ */ React71.createElement(Table.Cell, { ...rest, "aria-sort": direction, ref }, /* @__PURE__ */ React71.createElement("span", { className: getSortCellButtonClassNames(rest.align), role: "button", tabIndex: -1, onClick }, children, /* @__PURE__ */ React71.createElement("div", { "data-sort-icons": true, className: sortCellIconsContainerClasses({ direction }) }, /* @__PURE__ */ React71.createElement(InlineIcon, { icon: chevronUp_default, className: getSortCellIconClassNames(direction === "ascending") }), /* @__PURE__ */ React71.createElement(InlineIcon, { icon: chevronDown_default, className: getSortCellIconClassNames(direction === "descending") }))))
7102
7261
  );
7103
- var Caption = ({ children }) => /* @__PURE__ */ React70.createElement(Typography2.Small, { htmlTag: "caption" }, children);
7104
- var Item3 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React70.createElement("div", { className: "flex gap-4 items-center" }, image && /* @__PURE__ */ React70.createElement("img", { src: image, alt: imageAlt ?? "", style: { width: imageSize, height: imageSize } }), /* @__PURE__ */ React70.createElement("div", null, title, caption && /* @__PURE__ */ React70.createElement(Typography2.Small, null, caption)));
7105
- Table.Head = React70.memo(TableHead);
7106
- Table.Body = React70.memo(TableBody);
7107
- Table.Row = React70.memo(TableRow);
7108
- Table.Cell = React70.memo(TableCell);
7109
- Table.SortCell = React70.memo(TableSortCell);
7110
- Table.SelectCell = React70.memo(TableSelectCell);
7262
+ var Caption = ({ children }) => /* @__PURE__ */ React71.createElement(Typography2.Small, { htmlTag: "caption" }, children);
7263
+ var Item3 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React71.createElement("div", { className: "flex gap-4 items-center" }, image && /* @__PURE__ */ React71.createElement("img", { src: image, alt: imageAlt ?? "", style: { width: imageSize, height: imageSize } }), /* @__PURE__ */ React71.createElement("div", null, title, caption && /* @__PURE__ */ React71.createElement(Typography2.Small, null, caption)));
7264
+ Table.Head = React71.memo(TableHead);
7265
+ Table.Body = React71.memo(TableBody);
7266
+ Table.Row = React71.memo(TableRow);
7267
+ Table.Cell = React71.memo(TableCell);
7268
+ Table.SortCell = React71.memo(TableSortCell);
7269
+ Table.SelectCell = React71.memo(TableSelectCell);
7111
7270
  Table.Caption = Caption;
7112
7271
 
7113
7272
  // src/atoms/DataList/DataList.tsx
@@ -7207,15 +7366,15 @@ var toolbarSelectionCountClasses = tv19({
7207
7366
  var emptyGroupClasses = tv19({
7208
7367
  base: "flex gap-3 items-center"
7209
7368
  });
7210
- var DataList = ({ className, ...rest }) => /* @__PURE__ */ React71.createElement("div", { ...rest });
7211
- var TreeLine = ({ className, style, isLast = false, ...rest }) => /* @__PURE__ */ React71.createElement("div", { ...rest, className: clsx25(treeLineClasses(), className) }, /* @__PURE__ */ React71.createElement("div", { className: treeLineInnerClasses({ isLast }) }), /* @__PURE__ */ React71.createElement("div", { className: "border-t border-default border-dashed self-center w-[18px]" }));
7369
+ var DataList = ({ className, ...rest }) => /* @__PURE__ */ React72.createElement("div", { ...rest });
7370
+ var TreeLine = ({ className, style, isLast = false, ...rest }) => /* @__PURE__ */ React72.createElement("div", { ...rest, className: clsx25(treeLineClasses(), className) }, /* @__PURE__ */ React72.createElement("div", { className: treeLineInnerClasses({ isLast }) }), /* @__PURE__ */ React72.createElement("div", { className: "border-t border-default border-dashed self-center w-[18px]" }));
7212
7371
  var HeadCell = ({
7213
7372
  className,
7214
7373
  sticky,
7215
7374
  align,
7216
7375
  stickyColumn,
7217
7376
  ...rest
7218
- }) => /* @__PURE__ */ React71.createElement(
7377
+ }) => /* @__PURE__ */ React72.createElement(
7219
7378
  "div",
7220
7379
  {
7221
7380
  role: "columnheader",
@@ -7228,7 +7387,7 @@ var Cell = ({
7228
7387
  align,
7229
7388
  stickyColumn,
7230
7389
  ...rest
7231
- }) => /* @__PURE__ */ React71.createElement(
7390
+ }) => /* @__PURE__ */ React72.createElement(
7232
7391
  "div",
7233
7392
  {
7234
7393
  ...rest,
@@ -7251,7 +7410,7 @@ var Row = ({
7251
7410
  noDivider = false,
7252
7411
  ...rest
7253
7412
  }) => {
7254
- return /* @__PURE__ */ React71.createElement(
7413
+ return /* @__PURE__ */ React72.createElement(
7255
7414
  "div",
7256
7415
  {
7257
7416
  ...rest,
@@ -7269,9 +7428,9 @@ var Row = ({
7269
7428
  }
7270
7429
  );
7271
7430
  };
7272
- var SubGroupSpacing = ({ className, divider = false, ...rest }) => /* @__PURE__ */ React71.createElement("span", { ...rest, "aria-hidden": true, className: clsx25(subGroupSpacingClasses({ divider }), className) });
7273
- var SortCell = ({ children, direction = "none", onClick, sticky, ...rest }) => /* @__PURE__ */ React71.createElement(HeadCell, { ...rest, "aria-sort": direction, role: "columnheader", sticky }, /* @__PURE__ */ React71.createElement("span", { className: getSortCellButtonClassNames(rest.align), role: "button", tabIndex: -1, onClick }, children, /* @__PURE__ */ React71.createElement("div", { "data-sort-icons": true, className: sortCellIconsClasses({ direction }) }, /* @__PURE__ */ React71.createElement(InlineIcon, { icon: chevronUp_default, className: getSortCellIconClassNames(direction === "ascending") }), /* @__PURE__ */ React71.createElement(InlineIcon, { icon: chevronDown_default, className: getSortCellIconClassNames(direction === "descending") }))));
7274
- var EmptyGroup = ({ icon, children }) => /* @__PURE__ */ React71.createElement("div", { className: emptyGroupClasses() }, icon && /* @__PURE__ */ React71.createElement(Icon, { icon, width: 18 }), children);
7431
+ var SubGroupSpacing = ({ className, divider = false, ...rest }) => /* @__PURE__ */ React72.createElement("span", { ...rest, "aria-hidden": true, className: clsx25(subGroupSpacingClasses({ divider }), className) });
7432
+ var SortCell = ({ children, direction = "none", onClick, sticky, ...rest }) => /* @__PURE__ */ React72.createElement(HeadCell, { ...rest, "aria-sort": direction, role: "columnheader", sticky }, /* @__PURE__ */ React72.createElement("span", { className: getSortCellButtonClassNames(rest.align), role: "button", tabIndex: -1, onClick }, children, /* @__PURE__ */ React72.createElement("div", { "data-sort-icons": true, className: sortCellIconsClasses({ direction }) }, /* @__PURE__ */ React72.createElement(InlineIcon, { icon: chevronUp_default, className: getSortCellIconClassNames(direction === "ascending") }), /* @__PURE__ */ React72.createElement(InlineIcon, { icon: chevronDown_default, className: getSortCellIconClassNames(direction === "descending") }))));
7433
+ var EmptyGroup = ({ icon, children }) => /* @__PURE__ */ React72.createElement("div", { className: emptyGroupClasses() }, icon && /* @__PURE__ */ React72.createElement(Icon, { icon, width: 18 }), children);
7275
7434
  DataList.EmptyGroup = EmptyGroup;
7276
7435
  DataList.EmptyGroup.displayName = "DataList.EmptyGroup";
7277
7436
  DataList.HeadCell = HeadCell;
@@ -7286,12 +7445,12 @@ DataList.Row = Row;
7286
7445
  DataList.Row.displayName = "DataList.Row";
7287
7446
  DataList.TreeLine = TreeLine;
7288
7447
  DataList.TreeLine.displayName = "DataList.TreeLine";
7289
- var ToolbarContainer = ({ className, sticky = true, ...rest }) => /* @__PURE__ */ React71.createElement("div", { ...rest, role: "row", className: clsx25(toolbarContainerClasses({ sticky }), className) });
7448
+ var ToolbarContainer = ({ className, sticky = true, ...rest }) => /* @__PURE__ */ React72.createElement("div", { ...rest, role: "row", className: clsx25(toolbarContainerClasses({ sticky }), className) });
7290
7449
  ToolbarContainer.displayName = "DataList.Toolbar.Container";
7291
- var ToolbarGroup = ({ className, ...rest }) => /* @__PURE__ */ React71.createElement("div", { role: "cell", ...rest, className: clsx25(toolbarGroupClasses(), className) });
7450
+ var ToolbarGroup = ({ className, ...rest }) => /* @__PURE__ */ React72.createElement("div", { role: "cell", ...rest, className: clsx25(toolbarGroupClasses(), className) });
7292
7451
  ToolbarGroup.displayName = "DataList.Toolbar.Group";
7293
- var ToolbarSelectionCount = ({ className, ...rest }) => /* @__PURE__ */ React71.createElement(Typography, { variant: "default", color: "muted", className: clsx25(toolbarSelectionCountClasses(), className), ...rest });
7294
- var ToolbarActions = ({ className, ...rest }) => /* @__PURE__ */ React71.createElement("div", { ...rest, className: clsx25(toolbarActionsClasses(), className) });
7452
+ var ToolbarSelectionCount = ({ className, ...rest }) => /* @__PURE__ */ React72.createElement(Typography, { variant: "default", color: "muted", className: clsx25(toolbarSelectionCountClasses(), className), ...rest });
7453
+ var ToolbarActions = ({ className, ...rest }) => /* @__PURE__ */ React72.createElement("div", { ...rest, className: clsx25(toolbarActionsClasses(), className) });
7295
7454
  ToolbarActions.displayName = "DataList.Toolbar.Actions";
7296
7455
  DataList.Toolbar = {
7297
7456
  Container: ToolbarContainer,
@@ -7301,11 +7460,11 @@ DataList.Toolbar = {
7301
7460
  };
7302
7461
 
7303
7462
  // src/utils/stickyStyles.tsx
7304
- import React72, { useCallback as useCallback3, useLayoutEffect as useLayoutEffect2, useMemo as useMemo3, useRef as useRef9, useState as useState10 } from "react";
7463
+ import React73, { useCallback as useCallback3, useLayoutEffect as useLayoutEffect2, useMemo as useMemo4, useRef as useRef9, useState as useState9 } from "react";
7305
7464
  import { animated as animated4, useSpring as useSpring3 } from "@react-spring/web";
7306
7465
  import { throttle } from "lodash-es";
7307
7466
  function useStickyStyles(scrollProgress, axis, { borderColor, boxShadowColor }) {
7308
- const { startValue, endValue } = useMemo3(() => {
7467
+ const { startValue, endValue } = useMemo4(() => {
7309
7468
  if (scrollProgress === null) {
7310
7469
  return { startValue: 0, endValue: 0 };
7311
7470
  }
@@ -7352,9 +7511,9 @@ function useScrollProgress({
7352
7511
  skip,
7353
7512
  throttleMs = 50
7354
7513
  }) {
7355
- const [scrollState, setScrollState] = useState10(null);
7514
+ const [scrollState, setScrollState] = useState9(null);
7356
7515
  const currentStateRef = useRef9(null);
7357
- const throttledSetScrollState = useMemo3(
7516
+ const throttledSetScrollState = useMemo4(
7358
7517
  () => throttle((value) => {
7359
7518
  const currentState = currentStateRef.current;
7360
7519
  if (currentState?.scrollX === value.scrollX && currentState.scrollXProgress === value.scrollXProgress) {
@@ -7408,7 +7567,7 @@ function createAnimatedCell({
7408
7567
  return cellElement;
7409
7568
  }
7410
7569
  const AnimatedCell = animated4(cellElement.type);
7411
- return /* @__PURE__ */ React72.createElement(
7570
+ return /* @__PURE__ */ React73.createElement(
7412
7571
  AnimatedCell,
7413
7572
  {
7414
7573
  ...cellElement.props,
@@ -7466,10 +7625,10 @@ function isOnSortChangedDirection(value) {
7466
7625
  }
7467
7626
 
7468
7627
  // src/utils/table/useTableSort.tsx
7469
- import React73 from "react";
7628
+ import React74 from "react";
7470
7629
  var useTableSort = ({ column, direction, onSortChanged } = {}) => {
7471
7630
  const defaultSort = column ? { column, direction } : void 0;
7472
- const [sort, setSort] = React73.useState(defaultSort);
7631
+ const [sort, setSort] = React74.useState(defaultSort);
7473
7632
  const setSortAndEmitOnSortChangedEvent = (sort2) => {
7474
7633
  setSort(sort2);
7475
7634
  if (onSortChanged) {
@@ -7510,11 +7669,11 @@ var sortRowsBy = (rows, sort) => {
7510
7669
  };
7511
7670
 
7512
7671
  // src/molecules/DataList/DataListComponents.tsx
7513
- import React78 from "react";
7672
+ import React79 from "react";
7514
7673
  import { isFunction } from "lodash-es";
7515
7674
 
7516
7675
  // src/molecules/DropdownMenu/DropdownMenu.tsx
7517
- import React77, { createContext as createContext4, useContext as useContext7 } from "react";
7676
+ import React78, { createContext as createContext4, useContext as useContext7 } from "react";
7518
7677
  import {
7519
7678
  Autocomplete as AriaAutocomplete2,
7520
7679
  MenuTrigger as AriaMenuTrigger,
@@ -7522,14 +7681,14 @@ import {
7522
7681
  } from "react-aria-components";
7523
7682
 
7524
7683
  // src/atoms/Pressable/Pressable.tsx
7525
- import React74 from "react";
7684
+ import React75 from "react";
7526
7685
  import { usePress } from "@react-aria/interactions";
7527
7686
  import { mergeProps as mergeProps2, useObjectRef } from "@react-aria/utils";
7528
- var Pressable = React74.forwardRef(({ children, ...props }, ref) => {
7687
+ var Pressable = React75.forwardRef(({ children, ...props }, ref) => {
7529
7688
  ref = useObjectRef(ref);
7530
7689
  const { pressProps } = usePress({ ...props, ref });
7531
- const child = React74.Children.only(children);
7532
- return React74.cloneElement(
7690
+ const child = React75.Children.only(children);
7691
+ return React75.cloneElement(
7533
7692
  child,
7534
7693
  // @ts-expect-error: Not sure if it's possible to type ref correctly in this case.
7535
7694
  { ref, ...mergeProps2(child.props, pressProps) }
@@ -7537,7 +7696,7 @@ var Pressable = React74.forwardRef(({ children, ...props }, ref) => {
7537
7696
  });
7538
7697
 
7539
7698
  // src/molecules/DropdownMenu/SearchField.tsx
7540
- import React76 from "react";
7699
+ import React77 from "react";
7541
7700
  import {
7542
7701
  Button as AriaButton,
7543
7702
  Input as AriaInput2,
@@ -7545,7 +7704,7 @@ import {
7545
7704
  } from "react-aria-components";
7546
7705
 
7547
7706
  // src/atoms/Field/Field.tsx
7548
- import React75 from "react";
7707
+ import React76 from "react";
7549
7708
  import { Group as Group3 } from "react-aria-components";
7550
7709
 
7551
7710
  // src/atoms/utils/index.ts
@@ -7583,23 +7742,23 @@ var fieldGroup = tv20({
7583
7742
 
7584
7743
  // src/atoms/Field/Field.tsx
7585
7744
  var FieldGroup = (props) => {
7586
- return /* @__PURE__ */ React75.createElement(Group3, { ...props, className: (renderProps) => fieldGroup(renderProps) });
7745
+ return /* @__PURE__ */ React76.createElement(Group3, { ...props, className: (renderProps) => fieldGroup(renderProps) });
7587
7746
  };
7588
7747
 
7589
7748
  // src/molecules/DropdownMenu/SearchField.tsx
7590
7749
  var SearchField = (props) => {
7591
- return /* @__PURE__ */ React76.createElement(AriaSearchField2, { ...props }, /* @__PURE__ */ React76.createElement(FieldGroup, null, /* @__PURE__ */ React76.createElement(SearchIcon, { "aria-hidden": true }), /* @__PURE__ */ React76.createElement(AriaInput2, { className: "outline-none grow bg-transparent [&::-webkit-search-cancel-button]:hidden" }), /* @__PURE__ */ React76.createElement(AriaButton, { "aria-label": "Clear", className: "group-empty:invisible" }, /* @__PURE__ */ React76.createElement(ResetIcon, { "aria-hidden": true }))));
7750
+ return /* @__PURE__ */ React77.createElement(AriaSearchField2, { ...props }, /* @__PURE__ */ React77.createElement(FieldGroup, null, /* @__PURE__ */ React77.createElement(SearchIcon, { "aria-hidden": true }), /* @__PURE__ */ React77.createElement(AriaInput2, { className: "outline-none grow bg-transparent [&::-webkit-search-cancel-button]:hidden" }), /* @__PURE__ */ React77.createElement(AriaButton, { "aria-label": "Clear", className: "group-empty:invisible" }, /* @__PURE__ */ React77.createElement(ResetIcon, { "aria-hidden": true }))));
7592
7751
  };
7593
7752
 
7594
7753
  // src/molecules/DropdownMenu/DropdownMenu.tsx
7595
7754
  var MenuPropsContext = createContext4({});
7596
7755
  var DropdownMenu2 = (props) => {
7597
- return /* @__PURE__ */ React77.createElement(MenuPropsContext.Provider, { value: props }, /* @__PURE__ */ React77.createElement(AriaMenuTrigger, { defaultOpen: props.defaultOpen, isOpen: props.isOpen, onOpenChange: props.onOpenChange }, props.children));
7756
+ return /* @__PURE__ */ React78.createElement(MenuPropsContext.Provider, { value: props }, /* @__PURE__ */ React78.createElement(AriaMenuTrigger, { defaultOpen: props.defaultOpen, isOpen: props.isOpen, onOpenChange: props.onOpenChange }, props.children));
7598
7757
  };
7599
7758
  DropdownMenu2.displayName = "DropdownMenu";
7600
7759
  var MenuTrigger = ({ children }) => {
7601
7760
  const props = useContext7(MenuPropsContext);
7602
- return /* @__PURE__ */ React77.createElement(Pressable, { "aria-haspopup": "true", isDisabled: props.disabled }, children);
7761
+ return /* @__PURE__ */ React78.createElement(Pressable, { "aria-haspopup": "true", isDisabled: props.disabled }, children);
7603
7762
  };
7604
7763
  DropdownMenu2.Trigger = MenuTrigger;
7605
7764
  DropdownMenu2.Trigger.displayName = "DropdownMenu.Trigger";
@@ -7607,18 +7766,18 @@ var MenuItems = ({ children }) => {
7607
7766
  const props = useContext7(MenuPropsContext);
7608
7767
  const { contains } = useFilter({ sensitivity: "base" });
7609
7768
  const childrenWithIds = mapKeyToId(children);
7610
- const baseContent = /* @__PURE__ */ React77.createElement(
7769
+ const baseContent = /* @__PURE__ */ React78.createElement(
7611
7770
  DropdownMenu,
7612
7771
  {
7613
7772
  onAction: props.onAction,
7614
7773
  onSelectionChange: props.onSelectionChange,
7615
7774
  selectedKeys: props.selection,
7616
7775
  selectionMode: props.selectionMode,
7617
- renderEmptyState: () => /* @__PURE__ */ React77.createElement(DropdownMenu.EmptyStateContainer, null, props.emptyState)
7776
+ renderEmptyState: () => /* @__PURE__ */ React78.createElement(DropdownMenu.EmptyStateContainer, null, props.emptyState)
7618
7777
  },
7619
7778
  childrenWithIds
7620
7779
  );
7621
- return /* @__PURE__ */ React77.createElement(Popover, { placement: props.placement }, /* @__PURE__ */ React77.createElement(
7780
+ return /* @__PURE__ */ React78.createElement(Popover, { placement: props.placement }, /* @__PURE__ */ React78.createElement(
7622
7781
  DropdownMenu.MenuContainer,
7623
7782
  {
7624
7783
  minHeight: props.minHeight,
@@ -7627,7 +7786,7 @@ var MenuItems = ({ children }) => {
7627
7786
  maxWidth: props.maxWidth
7628
7787
  },
7629
7788
  props.header,
7630
- /* @__PURE__ */ React77.createElement(DropdownMenu.ScrollableContentContainer, null, props.searchable && /* @__PURE__ */ React77.createElement(AriaAutocomplete2, { filter: contains }, /* @__PURE__ */ React77.createElement(SearchField, { "aria-label": "Search menu items", className: "mb-5" }), baseContent), !props.searchable && baseContent),
7789
+ /* @__PURE__ */ React78.createElement(DropdownMenu.ScrollableContentContainer, null, props.searchable && /* @__PURE__ */ React78.createElement(AriaAutocomplete2, { filter: contains }, /* @__PURE__ */ React78.createElement(SearchField, { "aria-label": "Search menu items", className: "mb-5" }), baseContent), !props.searchable && baseContent),
7631
7790
  props.footer
7632
7791
  ));
7633
7792
  };
@@ -7635,26 +7794,26 @@ DropdownMenu2.Items = MenuItems;
7635
7794
  DropdownMenu2.Items.displayName = "DropdownMenu.Items";
7636
7795
  var MenuItem = (props) => {
7637
7796
  const textValue = props.textValue || (typeof props.children === "string" ? props.children : void 0);
7638
- return /* @__PURE__ */ React77.createElement(DropdownMenu.Item, { textValue, ...props });
7797
+ return /* @__PURE__ */ React78.createElement(DropdownMenu.Item, { textValue, ...props });
7639
7798
  };
7640
7799
  DropdownMenu2.Item = MenuItem;
7641
7800
  DropdownMenu2.Item.displayName = "DropdownMenu.Item";
7642
7801
  var MenuSection = ({ children, ...props }) => {
7643
7802
  const childrenWithIds = mapKeyToId(children);
7644
- return /* @__PURE__ */ React77.createElement(DropdownMenu.Group, { ...props }, childrenWithIds);
7803
+ return /* @__PURE__ */ React78.createElement(DropdownMenu.Group, { ...props }, childrenWithIds);
7645
7804
  };
7646
7805
  DropdownMenu2.Section = MenuSection;
7647
7806
  DropdownMenu2.Section.displayName = "DropdownMenu.Section";
7648
7807
  var mapKeyToId = (children) => {
7649
- return React77.Children.map(children, (child) => {
7808
+ return React78.Children.map(children, (child) => {
7650
7809
  if (typeof child === "boolean" || child === null || child === void 0) {
7651
7810
  return child;
7652
7811
  }
7653
- if (React77.isValidElement(child) && child.type === React77.Fragment) {
7812
+ if (React78.isValidElement(child) && child.type === React78.Fragment) {
7654
7813
  return mapKeyToId(child.props.children);
7655
7814
  }
7656
7815
  if (isComponentType(child, MenuItem)) {
7657
- return React77.cloneElement(child, { id: child.props.id ?? child.key ?? void 0 });
7816
+ return React78.cloneElement(child, { id: child.props.id ?? child.key ?? void 0 });
7658
7817
  }
7659
7818
  return child;
7660
7819
  });
@@ -7683,14 +7842,14 @@ var DataListRowMenu = ({
7683
7842
  return null;
7684
7843
  }
7685
7844
  const menuContent = isFunction(menu) ? menu(row, index) : menu;
7686
- return /* @__PURE__ */ React78.createElement(DataList.Cell, { align: "right" }, menuContent && /* @__PURE__ */ React78.createElement(
7845
+ return /* @__PURE__ */ React79.createElement(DataList.Cell, { align: "right" }, menuContent && /* @__PURE__ */ React79.createElement(
7687
7846
  DropdownMenu2,
7688
7847
  {
7689
7848
  placement: defaultContextualMenuPlacement,
7690
7849
  onAction: (action) => onAction?.(action, row, index),
7691
7850
  onOpenChange: onMenuOpenChange
7692
7851
  },
7693
- /* @__PURE__ */ React78.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React78.createElement(Button2.Icon, { "aria-label": menuAriaLabel, icon: more_default, disabled })),
7852
+ /* @__PURE__ */ React79.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React79.createElement(Button2.Icon, { "aria-label": menuAriaLabel, icon: more_default, disabled })),
7694
7853
  menuContent
7695
7854
  ));
7696
7855
  };
@@ -7719,7 +7878,7 @@ var DataListRow = ({
7719
7878
  ...resolvedAdditionalRowProps.style ?? {},
7720
7879
  cursor: isRowClickable ? "pointer" : void 0
7721
7880
  };
7722
- return /* @__PURE__ */ React78.createElement(
7881
+ return /* @__PURE__ */ React79.createElement(
7723
7882
  DataList.Row,
7724
7883
  {
7725
7884
  key: row.id,
@@ -7731,12 +7890,12 @@ var DataListRow = ({
7731
7890
  onClick: isRowClickable ? onClick : void 0
7732
7891
  },
7733
7892
  renderFirstColumn?.(row, index, rows),
7734
- /* @__PURE__ */ React78.createElement(
7893
+ /* @__PURE__ */ React79.createElement(
7735
7894
  List,
7736
7895
  {
7737
7896
  items: columns,
7738
7897
  renderItem: (column, columnIndex) => {
7739
- const cell2 = /* @__PURE__ */ React78.createElement(
7898
+ const cell2 = /* @__PURE__ */ React79.createElement(
7740
7899
  DataList.Cell,
7741
7900
  {
7742
7901
  key: column.key ?? column.headerName,
@@ -7744,7 +7903,7 @@ var DataListRow = ({
7744
7903
  ...additionalColumnProps(column, columnIndex, columns, row),
7745
7904
  className: rowClassName?.(row, index, rows)
7746
7905
  },
7747
- /* @__PURE__ */ React78.createElement(DataListCell, { column, row, index, rows, disabled: isRowDisabled })
7906
+ /* @__PURE__ */ React79.createElement(DataListCell, { column, row, index, rows, disabled: isRowDisabled })
7748
7907
  );
7749
7908
  return createAnimatedCell({
7750
7909
  cellElement: cell2,
@@ -7771,7 +7930,7 @@ var DataListCell = ({
7771
7930
  case "status": {
7772
7931
  const status = column.status(row, index, rows);
7773
7932
  if (status) {
7774
- cellContent = /* @__PURE__ */ React78.createElement(StatusChip, { dense: true, ...status });
7933
+ cellContent = /* @__PURE__ */ React79.createElement(StatusChip, { dense: true, ...status });
7775
7934
  }
7776
7935
  break;
7777
7936
  }
@@ -7779,7 +7938,7 @@ var DataListCell = ({
7779
7938
  const action = renameProperty("text", "children", column.action(row, index, rows));
7780
7939
  if (action) {
7781
7940
  const isActionDisabled = disabled || action.disabled;
7782
- cellContent = /* @__PURE__ */ React78.createElement(
7941
+ cellContent = /* @__PURE__ */ React79.createElement(
7783
7942
  Button2.Secondary,
7784
7943
  {
7785
7944
  dense: true,
@@ -7803,7 +7962,7 @@ var DataListCell = ({
7803
7962
  case "item": {
7804
7963
  const item = column.item(row, index, rows);
7805
7964
  if (item) {
7806
- cellContent = /* @__PURE__ */ React78.createElement(Item3, { ...item });
7965
+ cellContent = /* @__PURE__ */ React79.createElement(Item3, { ...item });
7807
7966
  }
7808
7967
  break;
7809
7968
  }
@@ -7812,13 +7971,13 @@ var DataListCell = ({
7812
7971
  if (!menuContent) {
7813
7972
  cellContent = null;
7814
7973
  } else {
7815
- cellContent = /* @__PURE__ */ React78.createElement(
7974
+ cellContent = /* @__PURE__ */ React79.createElement(
7816
7975
  DropdownMenu2,
7817
7976
  {
7818
7977
  placement: defaultContextualMenuPlacement,
7819
7978
  onAction: (action) => column.onAction(action, row, index)
7820
7979
  },
7821
- /* @__PURE__ */ React78.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React78.createElement(Button2.Icon, { "aria-label": "action", icon: more_default })),
7980
+ /* @__PURE__ */ React79.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React79.createElement(Button2.Icon, { "aria-label": "action", icon: more_default })),
7822
7981
  menuContent
7823
7982
  );
7824
7983
  }
@@ -7832,7 +7991,7 @@ var DataListCell = ({
7832
7991
  }
7833
7992
  break;
7834
7993
  }
7835
- return column.tooltip ? /* @__PURE__ */ React78.createElement(Tooltip, { ...column.tooltip(row, index, rows) }, cellContent) : /* @__PURE__ */ React78.createElement(React78.Fragment, null, cellContent);
7994
+ return column.tooltip ? /* @__PURE__ */ React79.createElement(Tooltip, { ...column.tooltip(row, index, rows) }, cellContent) : /* @__PURE__ */ React79.createElement(React79.Fragment, null, cellContent);
7836
7995
  };
7837
7996
 
7838
7997
  // src/molecules/DataList/DataListContext.tsx
@@ -7851,7 +8010,7 @@ var useDataListContext = () => {
7851
8010
  };
7852
8011
 
7853
8012
  // src/molecules/DataList/DataListGroup.tsx
7854
- import React79 from "react";
8013
+ import React80 from "react";
7855
8014
  import { isFunction as isFunction2, noop } from "lodash-es";
7856
8015
 
7857
8016
  // src/molecules/DataList/utils.ts
@@ -7863,8 +8022,8 @@ var INDENTATION = 28;
7863
8022
  var sortGroupKeys = (groupKeys) => [...groupKeys].sort((a) => a === "undefined" ? -1 : 1);
7864
8023
  var getDefaultRowSelectionLabel = () => "Select row";
7865
8024
  var getDefaultGroupCheckboxLabel = (key) => `Select ${key}`;
7866
- var renderDefaultGroupName = (key) => /* @__PURE__ */ React79.createElement(React79.Fragment, null, "Group: ", /* @__PURE__ */ React79.createElement("b", null, key));
7867
- var renderDefaultEmptyGroup = () => /* @__PURE__ */ React79.createElement(DataList.EmptyGroup, { icon: infoSign_default }, "This group is empty");
8025
+ var renderDefaultGroupName = (key) => /* @__PURE__ */ React80.createElement(React80.Fragment, null, "Group: ", /* @__PURE__ */ React80.createElement("b", null, key));
8026
+ var renderDefaultEmptyGroup = () => /* @__PURE__ */ React80.createElement(DataList.EmptyGroup, { icon: infoSign_default }, "This group is empty");
7868
8027
  var DataListGroup = ({
7869
8028
  groups,
7870
8029
  groupKey,
@@ -7902,15 +8061,15 @@ var DataListGroup = ({
7902
8061
  if (!emptyGroupContent) {
7903
8062
  return null;
7904
8063
  }
7905
- return /* @__PURE__ */ React79.createElement(DataList.Row, { noDivider: isLastGroup }, selectable && /* @__PURE__ */ React79.createElement(DataList.Cell, null), /* @__PURE__ */ React79.createElement(
8064
+ return /* @__PURE__ */ React80.createElement(DataList.Row, { noDivider: isLastGroup }, selectable && /* @__PURE__ */ React80.createElement(DataList.Cell, null), /* @__PURE__ */ React80.createElement(
7906
8065
  DataList.Cell,
7907
8066
  {
7908
8067
  style: { paddingLeft: `${2 + GAP + level * INDENTATION}px`, gridColumn: `${selectable ? 2 : 1} / -1` }
7909
8068
  },
7910
- /* @__PURE__ */ React79.createElement(Typography, { variant: "default", color: "muted" }, emptyGroupContent)
8069
+ /* @__PURE__ */ React80.createElement(Typography, { variant: "default", color: "muted" }, emptyGroupContent)
7911
8070
  ));
7912
8071
  }
7913
- return /* @__PURE__ */ React79.createElement(
8072
+ return /* @__PURE__ */ React80.createElement(
7914
8073
  List,
7915
8074
  {
7916
8075
  items: groups,
@@ -7919,7 +8078,7 @@ var DataListGroup = ({
7919
8078
  const isDisabled = disabled?.(row, index, rows);
7920
8079
  const isSelectionDisabled = selectionDisabled(row, index, rows);
7921
8080
  const isLastRow = isLastGroup && index === groups.length - 1;
7922
- return /* @__PURE__ */ React79.createElement(
8081
+ return /* @__PURE__ */ React80.createElement(
7923
8082
  DataListRow,
7924
8083
  {
7925
8084
  key: row.id,
@@ -7929,7 +8088,7 @@ var DataListGroup = ({
7929
8088
  isLast: isLastRow,
7930
8089
  rows,
7931
8090
  active: selectable && isSelected,
7932
- menu: /* @__PURE__ */ React79.createElement(
8091
+ menu: /* @__PURE__ */ React80.createElement(
7933
8092
  DataListRowMenu,
7934
8093
  {
7935
8094
  row,
@@ -7952,7 +8111,7 @@ var DataListGroup = ({
7952
8111
  }
7953
8112
  } : {},
7954
8113
  renderFirstColumn: (row2, index2) => {
7955
- return /* @__PURE__ */ React79.createElement(React79.Fragment, null, selectable && /* @__PURE__ */ React79.createElement(DataList.Cell, null, selectable === "single" && /* @__PURE__ */ React79.createElement(
8114
+ return /* @__PURE__ */ React80.createElement(React80.Fragment, null, selectable && /* @__PURE__ */ React80.createElement(DataList.Cell, null, selectable === "single" && /* @__PURE__ */ React80.createElement(
7956
8115
  RadioButton,
7957
8116
  {
7958
8117
  value: row2.id.toString(),
@@ -7961,7 +8120,7 @@ var DataListGroup = ({
7961
8120
  checked: isSelected,
7962
8121
  disabled: isDisabled || isSelectionDisabled
7963
8122
  }
7964
- ), isMultiSelectionMode && /* @__PURE__ */ React79.createElement(
8123
+ ), isMultiSelectionMode && /* @__PURE__ */ React80.createElement(
7965
8124
  Checkbox,
7966
8125
  {
7967
8126
  "aria-label": getRowSelectionLabel(row2, index2, isSelected, rows),
@@ -7981,14 +8140,14 @@ var DataListGroup = ({
7981
8140
  if (!groupKeys) {
7982
8141
  return null;
7983
8142
  }
7984
- return /* @__PURE__ */ React79.createElement(
8143
+ return /* @__PURE__ */ React80.createElement(
7985
8144
  List,
7986
8145
  {
7987
8146
  items: sortGroupKeys(groupKeys),
7988
8147
  renderItem: (key, index) => {
7989
8148
  const group = groups[key];
7990
8149
  if (key === "undefined" || key === void 0) {
7991
- return /* @__PURE__ */ React79.createElement(
8150
+ return /* @__PURE__ */ React80.createElement(
7992
8151
  DataListGroup,
7993
8152
  {
7994
8153
  key: "undefined",
@@ -8007,7 +8166,7 @@ var DataListGroup = ({
8007
8166
  const isChecked = nestedSelectedIds.length > 0;
8008
8167
  const isActiveRow = !!openPanelId || selectable && isChecked;
8009
8168
  const isLastRow = isLastGroup && index === groupKeys.length - 1 && !openPanelId;
8010
- return /* @__PURE__ */ React79.createElement(Accordion, { key, openPanelId }, hasCustomRowForGroup && /* @__PURE__ */ React79.createElement(DataList.Row, { active: isActiveRow, noDivider: isLastRow }, selectable && /* @__PURE__ */ React79.createElement(DataList.Cell, null, isMultiSelectionMode && /* @__PURE__ */ React79.createElement(
8169
+ return /* @__PURE__ */ React80.createElement(Accordion, { key, openPanelId }, hasCustomRowForGroup && /* @__PURE__ */ React80.createElement(DataList.Row, { active: isActiveRow, noDivider: isLastRow }, selectable && /* @__PURE__ */ React80.createElement(DataList.Cell, null, isMultiSelectionMode && /* @__PURE__ */ React80.createElement(
8011
8170
  Checkbox,
8012
8171
  {
8013
8172
  "aria-label": getGroupCheckboxLabel(key, group, index, isChecked, rows),
@@ -8016,11 +8175,11 @@ var DataListGroup = ({
8016
8175
  disabled: group.length === 0,
8017
8176
  onChange: getOnSelectionChangeForId(nestedRowIds)
8018
8177
  }
8019
- )), /* @__PURE__ */ React79.createElement(
8178
+ )), /* @__PURE__ */ React80.createElement(
8020
8179
  List,
8021
8180
  {
8022
8181
  items: columns,
8023
- renderItem: (column, idx) => /* @__PURE__ */ React79.createElement(
8182
+ renderItem: (column, idx) => /* @__PURE__ */ React80.createElement(
8024
8183
  DataList.Cell,
8025
8184
  {
8026
8185
  key: column.key ?? column.headerName,
@@ -8028,11 +8187,11 @@ var DataListGroup = ({
8028
8187
  className: "gap-3",
8029
8188
  style: idx === 0 ? { paddingLeft: `${GAP + level * INDENTATION}px` } : void 0
8030
8189
  },
8031
- idx === 0 && /* @__PURE__ */ React79.createElement(Accordion.Toggle, { panelId: key, onChange: onGroupToggled }),
8032
- /* @__PURE__ */ React79.createElement(DataListCell, { column, row: getGroupRow(key, group), index: -1, rows: [] })
8190
+ idx === 0 && /* @__PURE__ */ React80.createElement(Accordion.Toggle, { panelId: key, onChange: onGroupToggled }),
8191
+ /* @__PURE__ */ React80.createElement(DataListCell, { column, row: getGroupRow(key, group), index: -1, rows: [] })
8033
8192
  )
8034
8193
  }
8035
- ), /* @__PURE__ */ React79.createElement(
8194
+ ), /* @__PURE__ */ React80.createElement(
8036
8195
  DataListRowMenu,
8037
8196
  {
8038
8197
  row: getGroupRow(key, group),
@@ -8042,7 +8201,7 @@ var DataListGroup = ({
8042
8201
  onMenuOpenChange,
8043
8202
  menuAriaLabel
8044
8203
  }
8045
- )), !hasCustomRowForGroup && /* @__PURE__ */ React79.createElement(DataList.Row, { active: isActiveRow, noDivider: isLastRow }, isMultiSelectionMode && /* @__PURE__ */ React79.createElement(DataList.Cell, null, /* @__PURE__ */ React79.createElement(
8204
+ )), !hasCustomRowForGroup && /* @__PURE__ */ React80.createElement(DataList.Row, { active: isActiveRow, noDivider: isLastRow }, isMultiSelectionMode && /* @__PURE__ */ React80.createElement(DataList.Cell, null, /* @__PURE__ */ React80.createElement(
8046
8205
  Checkbox,
8047
8206
  {
8048
8207
  "aria-label": getGroupCheckboxLabel(key, group, index, isChecked, rows),
@@ -8051,15 +8210,15 @@ var DataListGroup = ({
8051
8210
  disabled: group.length === 0,
8052
8211
  onChange: getOnSelectionChangeForId(nestedRowIds)
8053
8212
  }
8054
- )), /* @__PURE__ */ React79.createElement(
8213
+ )), /* @__PURE__ */ React80.createElement(
8055
8214
  DataList.Cell,
8056
8215
  {
8057
8216
  className: "gap-2",
8058
8217
  style: { paddingLeft: `${GAP + level * INDENTATION}px`, gridColumn: `${selectable ? 2 : 1} / -1` }
8059
8218
  },
8060
- /* @__PURE__ */ React79.createElement(Accordion.Toggle, { panelId: key, onChange: onGroupToggled }),
8219
+ /* @__PURE__ */ React80.createElement(Accordion.Toggle, { panelId: key, onChange: onGroupToggled }),
8061
8220
  renderGroupName(key, group)
8062
- )), /* @__PURE__ */ React79.createElement(Accordion.UnanimatedPanel, { panelId: key }, /* @__PURE__ */ React79.createElement(DataList.Row, { isGroup: true }, /* @__PURE__ */ React79.createElement(
8221
+ )), /* @__PURE__ */ React80.createElement(Accordion.UnanimatedPanel, { panelId: key }, /* @__PURE__ */ React80.createElement(DataList.Row, { isGroup: true }, /* @__PURE__ */ React80.createElement(
8063
8222
  DataListGroup,
8064
8223
  {
8065
8224
  key,
@@ -8076,18 +8235,18 @@ var DataListGroup = ({
8076
8235
  };
8077
8236
 
8078
8237
  // src/molecules/DataList/DataListSkeleton.tsx
8079
- import React80 from "react";
8238
+ import React81 from "react";
8080
8239
  var DataListSkeleton = ({ columns = ["1", "2", "2", 52], rows = 5 }) => {
8081
8240
  const columnsAmount = [...Array(typeof columns === "number" ? columns : columns.length).keys()];
8082
- return /* @__PURE__ */ React80.createElement(Template, { role: "table", columns }, /* @__PURE__ */ React80.createElement(DataList.Row, null, columnsAmount.map((_, index) => /* @__PURE__ */ React80.createElement(DataList.HeadCell, { key: index }, /* @__PURE__ */ React80.createElement(Skeleton, { width: "100%", height: 17.5 })))), /* @__PURE__ */ React80.createElement(
8241
+ return /* @__PURE__ */ React81.createElement(Template, { role: "table", columns }, /* @__PURE__ */ React81.createElement(DataList.Row, null, columnsAmount.map((_, index) => /* @__PURE__ */ React81.createElement(DataList.HeadCell, { key: index }, /* @__PURE__ */ React81.createElement(Skeleton, { width: "100%", height: 17.5 })))), /* @__PURE__ */ React81.createElement(
8083
8242
  List,
8084
8243
  {
8085
8244
  items: [...Array(rows).keys()],
8086
- renderItem: (item, index) => /* @__PURE__ */ React80.createElement(DataList.Row, { key: item, noDivider: index === rows - 1 }, /* @__PURE__ */ React80.createElement(
8245
+ renderItem: (item, index) => /* @__PURE__ */ React81.createElement(DataList.Row, { key: item, noDivider: index === rows - 1 }, /* @__PURE__ */ React81.createElement(
8087
8246
  List,
8088
8247
  {
8089
8248
  items: columnsAmount,
8090
- renderItem: (key) => /* @__PURE__ */ React80.createElement(DataList.Cell, { key }, /* @__PURE__ */ React80.createElement(Skeleton, { width: "100%", height: 17.5 }))
8249
+ renderItem: (key) => /* @__PURE__ */ React81.createElement(DataList.Cell, { key }, /* @__PURE__ */ React81.createElement(Skeleton, { width: "100%", height: 17.5 }))
8091
8250
  }
8092
8251
  ))
8093
8252
  }
@@ -8095,7 +8254,7 @@ var DataListSkeleton = ({ columns = ["1", "2", "2", 52], rows = 5 }) => {
8095
8254
  };
8096
8255
 
8097
8256
  // src/molecules/DataList/DataListToolbar.tsx
8098
- import React81 from "react";
8257
+ import React82 from "react";
8099
8258
  import { castArray as castArray2 } from "lodash-es";
8100
8259
  var DataListToolbar = ({
8101
8260
  actions: _actions,
@@ -8109,7 +8268,7 @@ var DataListToolbar = ({
8109
8268
  const actions2 = castArray2(_actions).filter(Boolean);
8110
8269
  const noRowsSelected = (selectedRows?.length ?? 0) === 0;
8111
8270
  const disableToolbarActions = selectable && noRowsSelected;
8112
- return /* @__PURE__ */ React81.createElement(DataList.Toolbar.Container, { sticky }, /* @__PURE__ */ React81.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React81.createElement(DataList.Toolbar.SelectionCount, null, selectedRows?.length ?? 0, " selected")), actions2.length > 0 && /* @__PURE__ */ React81.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React81.createElement(DataList.Toolbar.Actions, null, actions2.map(
8271
+ return /* @__PURE__ */ React82.createElement(DataList.Toolbar.Container, { sticky }, /* @__PURE__ */ React82.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React82.createElement(DataList.Toolbar.SelectionCount, null, selectedRows?.length ?? 0, " selected")), actions2.length > 0 && /* @__PURE__ */ React82.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React82.createElement(DataList.Toolbar.Actions, null, actions2.map(
8113
8272
  (action) => renderAction({
8114
8273
  kind: "ghost",
8115
8274
  dense: true,
@@ -8119,14 +8278,14 @@ var DataListToolbar = ({
8119
8278
  onClick: () => action.onClick(selectedRows ?? [])
8120
8279
  }
8121
8280
  })
8122
- ))), menu && /* @__PURE__ */ React81.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React81.createElement(
8281
+ ))), menu && /* @__PURE__ */ React82.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React82.createElement(
8123
8282
  DropdownMenu2,
8124
8283
  {
8125
8284
  placement: defaultContextualMenuPlacement,
8126
8285
  onAction: (key) => onAction(key, selectedRows ?? []),
8127
8286
  onOpenChange: onMenuOpenChange
8128
8287
  },
8129
- /* @__PURE__ */ React81.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React81.createElement(Button2.Dropdown, { kind: "ghost", dense: true, disabled: disableToolbarActions }, menuLabel)),
8288
+ /* @__PURE__ */ React82.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React82.createElement(Button2.Dropdown, { kind: "ghost", dense: true, disabled: disableToolbarActions }, menuLabel)),
8130
8289
  menu
8131
8290
  )));
8132
8291
  };
@@ -8162,6 +8321,7 @@ var DataList2 = ({
8162
8321
  defaultSelectedRows = [],
8163
8322
  onSelectionChange,
8164
8323
  toolbar,
8324
+ ["aria-label"]: ariaLabel,
8165
8325
  ...rest
8166
8326
  }) => {
8167
8327
  const containerRef = useRef10(null);
@@ -8193,8 +8353,8 @@ var DataList2 = ({
8193
8353
  ...columns.map((column) => column.width ?? "auto"),
8194
8354
  menu ? "fit-content(28px)" : void 0
8195
8355
  ]);
8196
- const PaginationFooter = React82.useCallback(
8197
- ({ children }) => /* @__PURE__ */ React82.createElement("div", { style: { gridColumn: "1 / -1" }, role: "row" }, /* @__PURE__ */ React82.createElement("div", { role: "cell" }, children)),
8356
+ const PaginationFooter = React83.useCallback(
8357
+ ({ children }) => /* @__PURE__ */ React83.createElement("div", { style: { gridColumn: "1 / -1" }, role: "row" }, /* @__PURE__ */ React83.createElement("div", { role: "cell" }, children)),
8198
8358
  []
8199
8359
  );
8200
8360
  const getOnSelectionChangeForId = (id) => (e) => {
@@ -8216,7 +8376,7 @@ var DataList2 = ({
8216
8376
  )
8217
8377
  );
8218
8378
  const allRowsSelected = totalSelected >= allEnabledRowIds.length;
8219
- const componentContent = /* @__PURE__ */ React82.createElement(Template, { className: "Aquarium-DataList", columns: templateColumns, role: "table" }, !hideHeader && /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement(DataList.Row, { header: true }, selectable && /* @__PURE__ */ React82.createElement(DataList.HeadCell, { align: "left", sticky }, selectable === "multiple" && /* @__PURE__ */ React82.createElement(
8379
+ const componentContent = /* @__PURE__ */ React83.createElement(Template, { className: "Aquarium-DataList", columns: templateColumns, role: "table", "aria-label": ariaLabel }, !hideHeader && /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(DataList.Row, { header: true }, selectable && /* @__PURE__ */ React83.createElement(DataList.HeadCell, { align: "left", sticky }, selectable === "multiple" && /* @__PURE__ */ React83.createElement(
8220
8380
  Checkbox,
8221
8381
  {
8222
8382
  "aria-label": "Select all rows",
@@ -8230,10 +8390,10 @@ var DataList2 = ({
8230
8390
  }
8231
8391
  }
8232
8392
  }
8233
- )), isCollapsible && /* @__PURE__ */ React82.createElement(DataList.HeadCell, { align: "left", sticky }), columns.map((column) => {
8234
- const content = column.headerTooltip ? /* @__PURE__ */ React82.createElement(Tooltip, { placement: column.headerTooltip.placement, content: column.headerTooltip.content }, column.headerName) : column.headerName;
8235
- const headerContentAndIcon = column.icon ? /* @__PURE__ */ React82.createElement(Box.Flex, { flexDirection: "row", gap: "2", alignItems: "center" }, /* @__PURE__ */ React82.createElement(InlineIcon, { icon: column.icon, width: 18, height: 18, color: "muted", "aria-hidden": true }), content) : content;
8236
- const cell2 = columnHasSort(column) ? /* @__PURE__ */ React82.createElement(
8393
+ )), isCollapsible && /* @__PURE__ */ React83.createElement(DataList.HeadCell, { align: "left", sticky }), columns.map((column) => {
8394
+ const content = column.headerTooltip ? /* @__PURE__ */ React83.createElement(Tooltip, { placement: column.headerTooltip.placement, content: column.headerTooltip.content }, column.headerName) : column.headerName;
8395
+ const headerContentAndIcon = column.icon ? /* @__PURE__ */ React83.createElement(Box.Flex, { flexDirection: "row", gap: "2", alignItems: "center" }, /* @__PURE__ */ React83.createElement(InlineIcon, { icon: column.icon, width: 18, height: 18, color: "muted", "aria-hidden": true }), content) : content;
8396
+ const cell2 = columnHasSort(column) ? /* @__PURE__ */ React83.createElement(
8237
8397
  DataList.SortCell,
8238
8398
  {
8239
8399
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
@@ -8243,13 +8403,13 @@ var DataList2 = ({
8243
8403
  ...cellProps(column)
8244
8404
  },
8245
8405
  headerContentAndIcon
8246
- ) : /* @__PURE__ */ React82.createElement(DataList.HeadCell, { key: column.key ?? column.headerName, ...cellProps(column), sticky }, headerContentAndIcon);
8406
+ ) : /* @__PURE__ */ React83.createElement(DataList.HeadCell, { key: column.key ?? column.headerName, ...cellProps(column), sticky }, headerContentAndIcon);
8247
8407
  return createAnimatedCell({
8248
8408
  cellElement: cell2,
8249
8409
  stickyStyles,
8250
8410
  stickyColumn: cellProps(column).stickyColumn
8251
8411
  });
8252
- }), menu && /* @__PURE__ */ React82.createElement(DataList.HeadCell, { align: "right", "aria-label": menuAriaLabel, sticky }, menuHeaderName)), toolbar), groups && /* @__PURE__ */ React82.createElement(
8412
+ }), menu && /* @__PURE__ */ React83.createElement(DataList.HeadCell, { align: "right", "aria-label": menuAriaLabel, sticky }, menuHeaderName)), toolbar), groups && /* @__PURE__ */ React83.createElement(
8253
8413
  DataListGroup,
8254
8414
  {
8255
8415
  columns,
@@ -8276,7 +8436,7 @@ var DataList2 = ({
8276
8436
  level: 0,
8277
8437
  isLastGroup: true
8278
8438
  }
8279
- ), !groups && /* @__PURE__ */ React82.createElement(
8439
+ ), !groups && /* @__PURE__ */ React83.createElement(
8280
8440
  List,
8281
8441
  {
8282
8442
  ...rest,
@@ -8289,7 +8449,7 @@ var DataList2 = ({
8289
8449
  const isDisabled = disabled?.(row, index, sortedRows);
8290
8450
  const openPanelId = expandedGroupIds.find((id) => id === row.id.toString()) || null;
8291
8451
  const isLastRow = index === sortedRows.length - 1;
8292
- const content = /* @__PURE__ */ React82.createElement(
8452
+ const content = /* @__PURE__ */ React83.createElement(
8293
8453
  DataListRow,
8294
8454
  {
8295
8455
  key: row.id,
@@ -8300,7 +8460,7 @@ var DataList2 = ({
8300
8460
  active: !!openPanelId || selectable && isSelected,
8301
8461
  isLast: isLastRow && !openPanelId,
8302
8462
  stickyStyles,
8303
- menu: /* @__PURE__ */ React82.createElement(
8463
+ menu: /* @__PURE__ */ React83.createElement(
8304
8464
  DataListRowMenu,
8305
8465
  {
8306
8466
  row,
@@ -8319,7 +8479,7 @@ var DataList2 = ({
8319
8479
  "aria-selected": selected?.includes(row2.id) ?? false
8320
8480
  } : {},
8321
8481
  renderFirstColumn: (row2, index2) => {
8322
- return /* @__PURE__ */ React82.createElement(React82.Fragment, null, selectable && /* @__PURE__ */ React82.createElement(DataList.Cell, null, selectable === "single" && /* @__PURE__ */ React82.createElement(
8482
+ return /* @__PURE__ */ React83.createElement(React83.Fragment, null, selectable && /* @__PURE__ */ React83.createElement(DataList.Cell, null, selectable === "single" && /* @__PURE__ */ React83.createElement(
8323
8483
  RadioButton,
8324
8484
  {
8325
8485
  value: row2.id.toString(),
@@ -8328,7 +8488,7 @@ var DataList2 = ({
8328
8488
  checked: isSelected,
8329
8489
  disabled: isDisabled || isSelectionDisabled
8330
8490
  }
8331
- ), isMultiSelectionMode && /* @__PURE__ */ React82.createElement(
8491
+ ), isMultiSelectionMode && /* @__PURE__ */ React83.createElement(
8332
8492
  Checkbox,
8333
8493
  {
8334
8494
  "aria-label": getRowSelectionLabel(row2, index2, isSelected, sortedRows),
@@ -8336,7 +8496,7 @@ var DataList2 = ({
8336
8496
  checked: isSelected,
8337
8497
  disabled: isDisabled || isSelectionDisabled
8338
8498
  }
8339
- )), rowDetails !== void 0 && /* @__PURE__ */ React82.createElement(DataList.Cell, null, details && /* @__PURE__ */ React82.createElement(Accordion.Toggle, { panelId: row2.id.toString(), onChange: onGroupToggled })));
8499
+ )), rowDetails !== void 0 && /* @__PURE__ */ React83.createElement(DataList.Cell, null, details && /* @__PURE__ */ React83.createElement(Accordion.Toggle, { panelId: row2.id.toString(), onChange: onGroupToggled })));
8340
8500
  },
8341
8501
  onClick: selectable === "single" ? getOnSelectionChangeForId(row.id) : void 0
8342
8502
  }
@@ -8344,7 +8504,7 @@ var DataList2 = ({
8344
8504
  if (!details) {
8345
8505
  return content;
8346
8506
  }
8347
- return /* @__PURE__ */ React82.createElement(Accordion, { key: row.id, openPanelId }, content, /* @__PURE__ */ React82.createElement(
8507
+ return /* @__PURE__ */ React83.createElement(Accordion, { key: row.id, openPanelId }, content, /* @__PURE__ */ React83.createElement(
8348
8508
  Accordion.Panel,
8349
8509
  {
8350
8510
  role: "row",
@@ -8355,13 +8515,13 @@ var DataList2 = ({
8355
8515
  }),
8356
8516
  "aria-label": `row ${row.id.toString()} details`
8357
8517
  },
8358
- /* @__PURE__ */ React82.createElement("div", { role: "cell" }, details)
8518
+ /* @__PURE__ */ React83.createElement("div", { role: "cell" }, details)
8359
8519
  ));
8360
8520
  }
8361
8521
  }
8362
8522
  ));
8363
- const wrappedContent = hasStickyColumns ? /* @__PURE__ */ React82.createElement("div", { className: "relative w-full h-full overflow-auto", ref: containerRef }, componentContent) : componentContent;
8364
- return /* @__PURE__ */ React82.createElement(
8523
+ const wrappedContent = hasStickyColumns ? /* @__PURE__ */ React83.createElement("div", { className: "relative w-full h-full overflow-auto", ref: containerRef }, componentContent) : componentContent;
8524
+ return /* @__PURE__ */ React83.createElement(
8365
8525
  DataListContext.Provider,
8366
8526
  {
8367
8527
  value: {
@@ -8377,18 +8537,18 @@ DataList2.Skeleton = DataListSkeleton;
8377
8537
  DataList2.Toolbar = DataListToolbar;
8378
8538
 
8379
8539
  // src/molecules/DataTable/DataTable.tsx
8380
- import React85, { useRef as useRef11 } from "react";
8540
+ import React86, { useRef as useRef11 } from "react";
8381
8541
  import { clsx as clsx27 } from "clsx";
8382
8542
  import { compact as compact2, isFunction as isFunction4 } from "lodash-es";
8383
8543
 
8384
8544
  // src/molecules/Table/Table.tsx
8385
- import React84 from "react";
8545
+ import React85 from "react";
8386
8546
 
8387
8547
  // src/utils/table/useScrollTarget.ts
8388
- import React83 from "react";
8548
+ import React84 from "react";
8389
8549
  var useScrollTarget = (callback) => {
8390
- const targetRef = React83.useRef(null);
8391
- React83.useLayoutEffect(() => {
8550
+ const targetRef = React84.useRef(null);
8551
+ React84.useLayoutEffect(() => {
8392
8552
  const observer = new IntersectionObserver((entries) => entries[0].isIntersecting && callback && callback(), {
8393
8553
  root: null,
8394
8554
  rootMargin: `0px 0px 200px 0px`
@@ -8405,7 +8565,7 @@ var useScrollTarget = (callback) => {
8405
8565
  var Table2 = ({ children, onPrev, onNext, ...rest }) => {
8406
8566
  const bottomRef = useScrollTarget(onNext);
8407
8567
  const topRef = useScrollTarget(onPrev);
8408
- return /* @__PURE__ */ React84.createElement("div", { className: "Aquarium-Table relative w-full" }, /* @__PURE__ */ React84.createElement("div", { ref: topRef, className: "absolute top-0 h-1 w-full left-0 bg-transparent" }), /* @__PURE__ */ React84.createElement(Table, { ...rest }, children), /* @__PURE__ */ React84.createElement("div", { ref: bottomRef, className: "absolute bottom-0 h-1 w-full left-0 bg-transparent" }));
8568
+ return /* @__PURE__ */ React85.createElement("div", { className: "Aquarium-Table relative w-full" }, /* @__PURE__ */ React85.createElement("div", { ref: topRef, className: "absolute top-0 h-1 w-full left-0 bg-transparent" }), /* @__PURE__ */ React85.createElement(Table, { ...rest }, children), /* @__PURE__ */ React85.createElement("div", { ref: bottomRef, className: "absolute bottom-0 h-1 w-full left-0 bg-transparent" }));
8409
8569
  };
8410
8570
  Table2.Head = Table.Head;
8411
8571
  Table2.Body = Table.Body;
@@ -8444,11 +8604,11 @@ var DataTable = ({
8444
8604
  const [sort, updateSort] = useTableSort({ ...initialSortState, onSortChanged });
8445
8605
  const sortedRows = sortRowsBy(rows, sort);
8446
8606
  const amountOfColumns = columns.length + (menu ? 1 : 0);
8447
- const PaginationFooter = React85.useCallback(
8448
- ({ children }) => /* @__PURE__ */ React85.createElement("tfoot", null, /* @__PURE__ */ React85.createElement("tr", null, /* @__PURE__ */ React85.createElement("td", { colSpan: amountOfColumns }, children))),
8607
+ const PaginationFooter = React86.useCallback(
8608
+ ({ children }) => /* @__PURE__ */ React86.createElement("tfoot", null, /* @__PURE__ */ React86.createElement("tr", null, /* @__PURE__ */ React86.createElement("td", { colSpan: amountOfColumns }, children))),
8449
8609
  [amountOfColumns]
8450
8610
  );
8451
- const compponentContent = /* @__PURE__ */ React85.createElement(
8611
+ const compponentContent = /* @__PURE__ */ React86.createElement(
8452
8612
  Table2,
8453
8613
  {
8454
8614
  ariaLabel,
@@ -8460,11 +8620,11 @@ var DataTable = ({
8460
8620
  "table-fixed": layout === "fixed"
8461
8621
  })
8462
8622
  },
8463
- /* @__PURE__ */ React85.createElement(Table2.Head, { sticky }, compact2([
8623
+ /* @__PURE__ */ React86.createElement(Table2.Head, { sticky }, compact2([
8464
8624
  ...columns.map((column) => {
8465
- const content = column.headerTooltip && !column.headerInvisible ? /* @__PURE__ */ React85.createElement(Tooltip, { placement: column.headerTooltip.placement, content: column.headerTooltip.content }, column.headerName) : !column.headerInvisible && column.headerName;
8466
- const headerContentAndIcon = !column.headerInvisible && column.icon ? /* @__PURE__ */ React85.createElement(Box.Flex, { flexDirection: "row", gap: "3", alignItems: "center" }, /* @__PURE__ */ React85.createElement(InlineIcon, { icon: column.icon, height: "22", color: "default", "aria-hidden": true }), content) : content;
8467
- const cell2 = columnHasSort(column) ? /* @__PURE__ */ React85.createElement(
8625
+ const content = column.headerTooltip && !column.headerInvisible ? /* @__PURE__ */ React86.createElement(Tooltip, { placement: column.headerTooltip.placement, content: column.headerTooltip.content }, column.headerName) : !column.headerInvisible && column.headerName;
8626
+ const headerContentAndIcon = !column.headerInvisible && column.icon ? /* @__PURE__ */ React86.createElement(Box.Flex, { flexDirection: "row", gap: "3", alignItems: "center" }, /* @__PURE__ */ React86.createElement(InlineIcon, { icon: column.icon, height: "22", color: "default", "aria-hidden": true }), content) : content;
8627
+ const cell2 = columnHasSort(column) ? /* @__PURE__ */ React86.createElement(
8468
8628
  Table2.SortCell,
8469
8629
  {
8470
8630
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
@@ -8475,7 +8635,7 @@ var DataTable = ({
8475
8635
  ...cellProps(column)
8476
8636
  },
8477
8637
  headerContentAndIcon
8478
- ) : /* @__PURE__ */ React85.createElement(
8638
+ ) : /* @__PURE__ */ React86.createElement(
8479
8639
  Table2.Cell,
8480
8640
  {
8481
8641
  key: column.key ?? column.headerName,
@@ -8491,9 +8651,9 @@ var DataTable = ({
8491
8651
  stickyColumn: cellProps(column).stickyColumn
8492
8652
  });
8493
8653
  }),
8494
- menu ? /* @__PURE__ */ React85.createElement(Table2.Cell, { key: "__contextMenu", align: "right", "aria-label": menuAriaLabel }, menuHeaderName) : null
8654
+ menu ? /* @__PURE__ */ React86.createElement(Table2.Cell, { key: "__contextMenu", align: "right", "aria-label": menuAriaLabel }, menuHeaderName) : null
8495
8655
  ])),
8496
- /* @__PURE__ */ React85.createElement(
8656
+ /* @__PURE__ */ React86.createElement(
8497
8657
  List,
8498
8658
  {
8499
8659
  container: Table2.Body,
@@ -8502,13 +8662,13 @@ var DataTable = ({
8502
8662
  items: sortedRows,
8503
8663
  renderItem: (row, index) => {
8504
8664
  const isRowDisabled = disabled?.(row, index, sortedRows) ?? false;
8505
- return /* @__PURE__ */ React85.createElement(Table2.Row, { key: row.id, disabled: isRowDisabled }, /* @__PURE__ */ React85.createElement(
8665
+ return /* @__PURE__ */ React86.createElement(Table2.Row, { key: row.id, disabled: isRowDisabled }, /* @__PURE__ */ React86.createElement(
8506
8666
  List,
8507
8667
  {
8508
8668
  items: columns,
8509
8669
  renderItem: (column) => {
8510
8670
  return createAnimatedCell({
8511
- cellElement: /* @__PURE__ */ React85.createElement(
8671
+ cellElement: /* @__PURE__ */ React86.createElement(
8512
8672
  Table2.Cell,
8513
8673
  {
8514
8674
  key: column.key ?? column.headerName,
@@ -8527,7 +8687,7 @@ var DataTable = ({
8527
8687
  }
8528
8688
  )
8529
8689
  );
8530
- return hasStickyColumns ? /* @__PURE__ */ React85.createElement("div", { className: "relative w-full overflow-x-auto", ref: containerRef }, compponentContent) : compponentContent;
8690
+ return hasStickyColumns ? /* @__PURE__ */ React86.createElement("div", { className: "relative w-full overflow-x-auto", ref: containerRef }, compponentContent) : compponentContent;
8531
8691
  };
8532
8692
  var renderRowMenu = (row, index, {
8533
8693
  menu,
@@ -8537,14 +8697,14 @@ var renderRowMenu = (row, index, {
8537
8697
  }) => {
8538
8698
  if (menu) {
8539
8699
  const menuContent = isFunction4(menu) ? menu(row, index) : menu;
8540
- return /* @__PURE__ */ React85.createElement(Table2.Cell, { align: "right" }, menuContent && /* @__PURE__ */ React85.createElement(
8700
+ return /* @__PURE__ */ React86.createElement(Table2.Cell, { align: "right" }, menuContent && /* @__PURE__ */ React86.createElement(
8541
8701
  DropdownMenu2,
8542
8702
  {
8543
8703
  placement: defaultContextualMenuPlacement,
8544
8704
  onAction: (action) => onAction?.(action, row, index),
8545
8705
  onOpenChange: onMenuOpenChange
8546
8706
  },
8547
- /* @__PURE__ */ React85.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React85.createElement(Button2.Icon, { "aria-label": menuAriaLabel, icon: more_default })),
8707
+ /* @__PURE__ */ React86.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React86.createElement(Button2.Icon, { "aria-label": menuAriaLabel, icon: more_default })),
8548
8708
  menuContent
8549
8709
  ));
8550
8710
  }
@@ -8556,31 +8716,31 @@ var renderCell = (column, row, index, rows) => {
8556
8716
  if (column.type === "status") {
8557
8717
  const status = column.status(row, index, rows);
8558
8718
  if (status) {
8559
- cellContent = /* @__PURE__ */ React85.createElement(StatusChip, { dense: true, ...status });
8719
+ cellContent = /* @__PURE__ */ React86.createElement(StatusChip, { dense: true, ...status });
8560
8720
  }
8561
8721
  } else if (column.type === "action") {
8562
8722
  const action = renameProperty("text", "children", column.action(row, index, rows));
8563
8723
  if (action) {
8564
- cellContent = /* @__PURE__ */ React85.createElement(Button2.Secondary, { dense: true, ...action });
8724
+ cellContent = /* @__PURE__ */ React86.createElement(Button2.Secondary, { dense: true, ...action });
8565
8725
  }
8566
8726
  } else if (column.type === "custom") {
8567
8727
  cellContent = column.UNSAFE_render(row, index, rows);
8568
8728
  } else if (column.type === "item") {
8569
8729
  const item = column.item(row, index, rows);
8570
8730
  if (item) {
8571
- cellContent = /* @__PURE__ */ React85.createElement(Item3, { ...item });
8731
+ cellContent = /* @__PURE__ */ React86.createElement(Item3, { ...item });
8572
8732
  }
8573
8733
  } else if (column.formatter) {
8574
8734
  cellContent = column.formatter(row[column.field], row, index, rows);
8575
8735
  } else {
8576
8736
  cellContent = row[column.field];
8577
8737
  }
8578
- return column.tooltip ? /* @__PURE__ */ React85.createElement(Tooltip, { ...column.tooltip(row, index, rows) }, cellContent) : /* @__PURE__ */ React85.createElement(React85.Fragment, null, cellContent);
8738
+ return column.tooltip ? /* @__PURE__ */ React86.createElement(Tooltip, { ...column.tooltip(row, index, rows) }, cellContent) : /* @__PURE__ */ React86.createElement(React86.Fragment, null, cellContent);
8579
8739
  };
8580
8740
  DataTable.Skeleton = DataListSkeleton;
8581
8741
 
8582
8742
  // src/molecules/DatePicker/DatePicker.tsx
8583
- import React92 from "react";
8743
+ import React93 from "react";
8584
8744
  import {
8585
8745
  DatePickerStateContext,
8586
8746
  Text
@@ -8590,13 +8750,13 @@ import { mergeProps as mergeProps3, useId as useId10 } from "@react-aria/utils";
8590
8750
  import { omit as omit8 } from "lodash-es";
8591
8751
 
8592
8752
  // src/molecules/TimeField/TimeField.tsx
8593
- import React87 from "react";
8753
+ import React88 from "react";
8594
8754
  import { useLabel } from "@react-aria/label";
8595
8755
  import { useId as useId9 } from "@react-aria/utils";
8596
8756
  import { omit as omit7 } from "lodash-es";
8597
8757
 
8598
8758
  // src/atoms/DateField/DateField.tsx
8599
- import React86 from "react";
8759
+ import React87 from "react";
8600
8760
  import {
8601
8761
  DateField as AriaDateField,
8602
8762
  DateInput as AriaDateInput,
@@ -8619,10 +8779,10 @@ var segmentStyles = tv21({
8619
8779
  }
8620
8780
  });
8621
8781
  var DateInput = (props) => {
8622
- return /* @__PURE__ */ React86.createElement(AriaDateInput, { className: (renderProps) => fieldGroup({ ...renderProps, class: "block" }), ...props }, (segment) => /* @__PURE__ */ React86.createElement(AriaDateSegment, { segment, className: segmentStyles }));
8782
+ return /* @__PURE__ */ React87.createElement(AriaDateInput, { className: (renderProps) => fieldGroup({ ...renderProps, class: "block" }), ...props }, (segment) => /* @__PURE__ */ React87.createElement(AriaDateSegment, { segment, className: segmentStyles }));
8623
8783
  };
8624
8784
  var TimeField = ({ disabled, valid, ...props }) => {
8625
- return /* @__PURE__ */ React86.createElement(AriaTimeField, { ...props, isInvalid: valid === false, isDisabled: disabled }, /* @__PURE__ */ React86.createElement(DateInput, null));
8785
+ return /* @__PURE__ */ React87.createElement(AriaTimeField, { ...props, isInvalid: valid === false, isDisabled: disabled }, /* @__PURE__ */ React87.createElement(DateInput, null));
8626
8786
  };
8627
8787
 
8628
8788
  // src/molecules/TimeField/TimeField.tsx
@@ -8632,11 +8792,11 @@ function TimeField2(props) {
8632
8792
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8633
8793
  const { "data-testid": dataTestId, ...labelControlProps } = getLabelControlProps(props);
8634
8794
  const baseProps = omit7(props, Object.keys(labelControlProps));
8635
- return /* @__PURE__ */ React87.createElement(LabelControl, { ...labelProps, ...labelControlProps, messageId: errorMessageId, className: "Aquarium-TimeField" }, /* @__PURE__ */ React87.createElement(TimeField, { ...baseProps, ...fieldProps, ...errorProps, disabled: props.disabled, valid: props.valid }));
8795
+ return /* @__PURE__ */ React88.createElement(LabelControl, { ...labelProps, ...labelControlProps, messageId: errorMessageId, className: "Aquarium-TimeField" }, /* @__PURE__ */ React88.createElement(TimeField, { ...baseProps, ...fieldProps, ...errorProps, disabled: props.disabled, valid: props.valid }));
8636
8796
  }
8637
8797
 
8638
8798
  // src/atoms/DatePicker/Calendar.tsx
8639
- import React89 from "react";
8799
+ import React90 from "react";
8640
8800
  import {
8641
8801
  Calendar as AriaCalendar,
8642
8802
  CalendarCell,
@@ -8649,7 +8809,7 @@ import {
8649
8809
  import { tv as tv23 } from "tailwind-variants";
8650
8810
 
8651
8811
  // src/atoms/DatePicker/DatePickerButton.tsx
8652
- import React88 from "react";
8812
+ import React89 from "react";
8653
8813
  import { Button as AriaButton2, composeRenderProps as composeRenderProps4 } from "react-aria-components";
8654
8814
  import { tv as tv22 } from "tailwind-variants";
8655
8815
  var datePickerButton = tv22({
@@ -8665,7 +8825,7 @@ var DatePickerButton = ({
8665
8825
  hideWhenParentIsNotHoveredOrFocused = false,
8666
8826
  ...props
8667
8827
  }) => {
8668
- return /* @__PURE__ */ React88.createElement(
8828
+ return /* @__PURE__ */ React89.createElement(
8669
8829
  AriaButton2,
8670
8830
  {
8671
8831
  ...props,
@@ -8682,10 +8842,10 @@ var DatePickerButton = ({
8682
8842
  );
8683
8843
  };
8684
8844
  var ClearInputButton = (props) => {
8685
- return /* @__PURE__ */ React88.createElement(DatePickerButton, { ...props, "aria-label": "Clear", slot: null, hideWhenParentIsNotHoveredOrFocused: true }, /* @__PURE__ */ React88.createElement(Icon2, { icon: smallCross_default, dense: true }));
8845
+ return /* @__PURE__ */ React89.createElement(DatePickerButton, { ...props, "aria-label": "Clear", slot: null, hideWhenParentIsNotHoveredOrFocused: true }, /* @__PURE__ */ React89.createElement(Icon2, { icon: smallCross_default, dense: true }));
8686
8846
  };
8687
8847
  var CalendarButton = (props) => {
8688
- return /* @__PURE__ */ React88.createElement(DatePickerButton, { ...props, "aria-label": "Calendar" }, /* @__PURE__ */ React88.createElement(Icon2, { icon: calendar_default, dense: true }));
8848
+ return /* @__PURE__ */ React89.createElement(DatePickerButton, { ...props, "aria-label": "Calendar" }, /* @__PURE__ */ React89.createElement(Icon2, { icon: calendar_default, dense: true }));
8689
8849
  };
8690
8850
 
8691
8851
  // src/atoms/DatePicker/Calendar.tsx
@@ -8706,17 +8866,17 @@ var cellStyles = tv23({
8706
8866
  }
8707
8867
  });
8708
8868
  var Calendar = (props) => {
8709
- return /* @__PURE__ */ React89.createElement(AriaCalendar, { ...props }, /* @__PURE__ */ React89.createElement(CalendarHeader, null), /* @__PURE__ */ React89.createElement(CalendarGrid, null, /* @__PURE__ */ React89.createElement(CalendarGridHeader, null), /* @__PURE__ */ React89.createElement(CalendarGridBody, null, (date) => /* @__PURE__ */ React89.createElement(CalendarCell, { date, className: cellStyles }))));
8869
+ return /* @__PURE__ */ React90.createElement(AriaCalendar, { ...props }, /* @__PURE__ */ React90.createElement(CalendarHeader, null), /* @__PURE__ */ React90.createElement(CalendarGrid, null, /* @__PURE__ */ React90.createElement(CalendarGridHeader, null), /* @__PURE__ */ React90.createElement(CalendarGridBody, null, (date) => /* @__PURE__ */ React90.createElement(CalendarCell, { date, className: cellStyles }))));
8710
8870
  };
8711
8871
  var CalendarHeader = () => {
8712
- return /* @__PURE__ */ React89.createElement("header", { className: "flex items-center gap-1 pb-5 w-full" }, /* @__PURE__ */ React89.createElement(DatePickerButton, { slot: "previous", className: "p-3" }, /* @__PURE__ */ React89.createElement(Icon, { icon: chevronLeft_default })), /* @__PURE__ */ React89.createElement(Heading, { className: "flex-1 typography-default-strong text-center" }), /* @__PURE__ */ React89.createElement(DatePickerButton, { slot: "next", className: "p-3" }, /* @__PURE__ */ React89.createElement(Icon, { icon: chevronRight_default })));
8872
+ return /* @__PURE__ */ React90.createElement("header", { className: "flex items-center gap-1 pb-5 w-full" }, /* @__PURE__ */ React90.createElement(DatePickerButton, { slot: "previous", className: "p-3" }, /* @__PURE__ */ React90.createElement(Icon, { icon: chevronLeft_default })), /* @__PURE__ */ React90.createElement(Heading, { className: "flex-1 typography-default-strong text-center" }), /* @__PURE__ */ React90.createElement(DatePickerButton, { slot: "next", className: "p-3" }, /* @__PURE__ */ React90.createElement(Icon, { icon: chevronRight_default })));
8713
8873
  };
8714
8874
  var CalendarGridHeader = () => {
8715
- return /* @__PURE__ */ React89.createElement(AriaCalendarGridHeader, null, (day) => /* @__PURE__ */ React89.createElement(CalendarHeaderCell, { className: "text-xs text-inactive typography-small" }, day));
8875
+ return /* @__PURE__ */ React90.createElement(AriaCalendarGridHeader, null, (day) => /* @__PURE__ */ React90.createElement(CalendarHeaderCell, { className: "text-xs text-inactive typography-small" }, day));
8716
8876
  };
8717
8877
 
8718
8878
  // src/atoms/DatePicker/DatePicker.tsx
8719
- import React90 from "react";
8879
+ import React91 from "react";
8720
8880
  import {
8721
8881
  Button as AriaButton3,
8722
8882
  DatePicker as AriaDatePicker,
@@ -8746,7 +8906,7 @@ var datePickerCalendarStyles = tv24({
8746
8906
  });
8747
8907
  var DatePicker = ({ variant, ...props }) => {
8748
8908
  const hasSomeValue = props.value ?? props.defaultValue ?? props.placeholderValue;
8749
- return /* @__PURE__ */ React90.createElement(
8909
+ return /* @__PURE__ */ React91.createElement(
8750
8910
  AriaDatePicker,
8751
8911
  {
8752
8912
  ...props,
@@ -8757,7 +8917,7 @@ var DatePicker = ({ variant, ...props }) => {
8757
8917
  };
8758
8918
  var DateRangePicker = ({ variant, ...props }) => {
8759
8919
  const hasSomeValue = props.value ?? props.defaultValue ?? props.placeholderValue;
8760
- return /* @__PURE__ */ React90.createElement(
8920
+ return /* @__PURE__ */ React91.createElement(
8761
8921
  AriaDateRangePicker,
8762
8922
  {
8763
8923
  ...props,
@@ -8768,31 +8928,31 @@ var DateRangePicker = ({ variant, ...props }) => {
8768
8928
  };
8769
8929
  var Presets = ({ children }) => {
8770
8930
  const { presets } = datePickerCalendarStyles();
8771
- return /* @__PURE__ */ React90.createElement("div", { className: presets() }, children);
8931
+ return /* @__PURE__ */ React91.createElement("div", { className: presets() }, children);
8772
8932
  };
8773
8933
  var Preset = ({ value, label }) => {
8774
8934
  const { preset } = datePickerCalendarStyles();
8775
- const context2 = React90.useContext(AriaDatePickerStateContext);
8935
+ const context2 = React91.useContext(AriaDatePickerStateContext);
8776
8936
  const handlePress = () => {
8777
8937
  context2?.setValue(value);
8778
8938
  context2?.close();
8779
8939
  };
8780
8940
  const isActive = context2?.value !== void 0 && context2.value?.toString() === value.toString();
8781
- return /* @__PURE__ */ React90.createElement(AriaButton3, { onPress: handlePress, className: preset({ isPresetActive: isActive }) }, label);
8941
+ return /* @__PURE__ */ React91.createElement(AriaButton3, { onPress: handlePress, className: preset({ isPresetActive: isActive }) }, label);
8782
8942
  };
8783
8943
  var RangePreset = ({ value, label }) => {
8784
8944
  const { preset } = datePickerCalendarStyles();
8785
- const context2 = React90.useContext(AriaDateRangePickerStateContext);
8945
+ const context2 = React91.useContext(AriaDateRangePickerStateContext);
8786
8946
  const handlePress = () => {
8787
8947
  context2?.setValue(value);
8788
8948
  context2?.close();
8789
8949
  };
8790
8950
  const isActive = context2?.value !== void 0 && context2.value.start?.toString() === value.start.toString() && context2.value.end?.toString() === value.end.toString();
8791
- return /* @__PURE__ */ React90.createElement(AriaButton3, { onPress: handlePress, className: preset({ isPresetActive: isActive }) }, label);
8951
+ return /* @__PURE__ */ React91.createElement(AriaButton3, { onPress: handlePress, className: preset({ isPresetActive: isActive }) }, label);
8792
8952
  };
8793
8953
 
8794
8954
  // src/atoms/Dialog/Dialog.tsx
8795
- import React91 from "react";
8955
+ import React92 from "react";
8796
8956
  import { Dialog as AriaDialog2 } from "react-aria-components";
8797
8957
 
8798
8958
  // node_modules/tailwind-merge/dist/bundle-mjs.mjs
@@ -11271,7 +11431,7 @@ var DIALOG_ICONS_AND_COLORS = {
11271
11431
  }
11272
11432
  };
11273
11433
  var Dialog = (props) => {
11274
- return /* @__PURE__ */ React91.createElement(
11434
+ return /* @__PURE__ */ React92.createElement(
11275
11435
  AriaDialog2,
11276
11436
  {
11277
11437
  ...props,
@@ -11282,14 +11442,14 @@ var Dialog = (props) => {
11282
11442
 
11283
11443
  // src/molecules/DatePicker/DatePicker.tsx
11284
11444
  var DatePickerClearButton = () => {
11285
- const state = React92.useContext(DatePickerStateContext);
11445
+ const state = React93.useContext(DatePickerStateContext);
11286
11446
  if (!state) {
11287
11447
  throw new Error("DatePickerStateContext is missing a provider");
11288
11448
  }
11289
11449
  if (!state.value) {
11290
11450
  return null;
11291
11451
  }
11292
- return /* @__PURE__ */ React92.createElement(
11452
+ return /* @__PURE__ */ React93.createElement(
11293
11453
  ClearInputButton,
11294
11454
  {
11295
11455
  onPress: () => {
@@ -11300,8 +11460,8 @@ var DatePickerClearButton = () => {
11300
11460
  };
11301
11461
  DatePickerClearButton.displayName = "DatePicker.ClearButton";
11302
11462
  var CalendarTimeField = ({ granularity, labelText = "Time", ...props }) => {
11303
- const ctx = React92.useContext(DatePickerStateContext);
11304
- return /* @__PURE__ */ React92.createElement(
11463
+ const ctx = React93.useContext(DatePickerStateContext);
11464
+ return /* @__PURE__ */ React93.createElement(
11305
11465
  TimeField2,
11306
11466
  {
11307
11467
  ...props,
@@ -11313,16 +11473,16 @@ var CalendarTimeField = ({ granularity, labelText = "Time", ...props }) => {
11313
11473
  }
11314
11474
  );
11315
11475
  };
11316
- var DatePickerCalendarPropsContext = React92.createContext(null);
11476
+ var DatePickerCalendarPropsContext = React93.createContext(null);
11317
11477
  var DatePickerCalendar = (props) => {
11318
- const ctx = React92.useContext(DatePickerCalendarPropsContext);
11478
+ const ctx = React93.useContext(DatePickerCalendarPropsContext);
11319
11479
  const { variant, granularity, errorMessage, presets = [] } = mergeProps3(ctx, props);
11320
11480
  const { dialog, calendar, errorMessage: errorMessageStyle } = datePickerCalendarStyles();
11321
- return /* @__PURE__ */ React92.createElement(Popover, { offset: 0 }, /* @__PURE__ */ React92.createElement(Dialog, { className: dialog() }, presets.length > 0 && /* @__PURE__ */ React92.createElement(Presets, null, presets.map((props2) => /* @__PURE__ */ React92.createElement(Preset, { key: props2.value.toString(), ...props2 }))), /* @__PURE__ */ React92.createElement(Spacing, { gap: "3", className: "p-5" }, /* @__PURE__ */ React92.createElement(Calendar, { className: calendar() }), variant === "datetime" && /* @__PURE__ */ React92.createElement(CalendarTimeField, { granularity }), errorMessage && /* @__PURE__ */ React92.createElement(Text, { slot: "errorMessage", className: errorMessageStyle() }, errorMessage))));
11481
+ return /* @__PURE__ */ React93.createElement(Popover, { offset: 0 }, /* @__PURE__ */ React93.createElement(Dialog, { className: dialog() }, presets.length > 0 && /* @__PURE__ */ React93.createElement(Presets, null, presets.map((props2) => /* @__PURE__ */ React93.createElement(Preset, { key: props2.value.toString(), ...props2 }))), /* @__PURE__ */ React93.createElement(Spacing, { gap: "3", className: "p-5" }, /* @__PURE__ */ React93.createElement(Calendar, { className: calendar() }), variant === "datetime" && /* @__PURE__ */ React93.createElement(CalendarTimeField, { granularity }), errorMessage && /* @__PURE__ */ React93.createElement(Text, { slot: "errorMessage", className: errorMessageStyle() }, errorMessage))));
11322
11482
  };
11323
11483
  DatePickerCalendar.displayName = "DatePicker.Calendar";
11324
11484
  var DatePickerField = ({ clearSelectionEnabled = true, disabled = false }) => {
11325
- return /* @__PURE__ */ React92.createElement(FieldGroup, { className: "min-w-[210px] w-auto" }, /* @__PURE__ */ React92.createElement(DateInput, { className: "flex-1" }), /* @__PURE__ */ React92.createElement(Box.Flex, { alignItems: "center", gap: "2" }, clearSelectionEnabled && !disabled && /* @__PURE__ */ React92.createElement(DatePickerClearButton, null), /* @__PURE__ */ React92.createElement(CalendarButton, null)));
11485
+ return /* @__PURE__ */ React93.createElement(FieldGroup, { className: "min-w-[210px] w-auto" }, /* @__PURE__ */ React93.createElement(DateInput, { className: "flex-1" }), /* @__PURE__ */ React93.createElement(Box.Flex, { alignItems: "center", gap: "2" }, clearSelectionEnabled && !disabled && /* @__PURE__ */ React93.createElement(DatePickerClearButton, null), /* @__PURE__ */ React93.createElement(CalendarButton, null)));
11326
11486
  };
11327
11487
  DatePickerField.displayName = "DatePicker.Field";
11328
11488
  var createDatePickerBase = (variant) => {
@@ -11336,13 +11496,13 @@ var createDatePickerBase = (variant) => {
11336
11496
  children,
11337
11497
  ...props
11338
11498
  }) => {
11339
- const content = children ?? /* @__PURE__ */ React92.createElement(React92.Fragment, null, /* @__PURE__ */ React92.createElement(DatePickerField, { clearSelectionEnabled, disabled }), /* @__PURE__ */ React92.createElement(DatePickerCalendar, null));
11340
- return /* @__PURE__ */ React92.createElement(
11499
+ const content = children ?? /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(DatePickerField, { clearSelectionEnabled, disabled }), /* @__PURE__ */ React93.createElement(DatePickerCalendar, null));
11500
+ return /* @__PURE__ */ React93.createElement(
11341
11501
  DatePickerCalendarPropsContext.Provider,
11342
11502
  {
11343
11503
  value: { variant, granularity: props.granularity, errorMessage, presets }
11344
11504
  },
11345
- /* @__PURE__ */ React92.createElement(DatePicker, { ...props, variant, isDisabled: disabled, isInvalid: valid === false }, content)
11505
+ /* @__PURE__ */ React93.createElement(DatePicker, { ...props, variant, isDisabled: disabled, isInvalid: valid === false }, content)
11346
11506
  );
11347
11507
  };
11348
11508
  datePicker.Calendar = DatePickerCalendar;
@@ -11360,7 +11520,7 @@ var createDatePicker = (variant) => {
11360
11520
  const { "data-testid": dataTestId, ...labelControlProps } = getLabelControlProps(props);
11361
11521
  const baseProps = omit8(props, Object.keys(labelControlProps));
11362
11522
  const allProps = { ...baseProps, ...fieldProps, ...errorProps, disabled: props.disabled, valid: props.valid };
11363
- return /* @__PURE__ */ React92.createElement(LabelControl, { ...labelProps, ...labelControlProps, messageId: errorMessageId, className: "Aquarium-DatePicker" }, variant === "date" ? /* @__PURE__ */ React92.createElement(DatePickerBase, { ...allProps }) : /* @__PURE__ */ React92.createElement(DateTimePickerBase, { ...allProps }));
11523
+ return /* @__PURE__ */ React93.createElement(LabelControl, { ...labelProps, ...labelControlProps, messageId: errorMessageId, className: "Aquarium-DatePicker" }, variant === "date" ? /* @__PURE__ */ React93.createElement(DatePickerBase, { ...allProps }) : /* @__PURE__ */ React93.createElement(DateTimePickerBase, { ...allProps }));
11364
11524
  };
11365
11525
  datePicker.Calendar = DatePickerCalendar;
11366
11526
  datePicker.Field = DatePickerField;
@@ -11371,7 +11531,7 @@ var DatePicker2 = createDatePicker("date");
11371
11531
  var DateTimePicker = createDatePicker("datetime");
11372
11532
 
11373
11533
  // src/molecules/DatePicker/DateRangePicker.tsx
11374
- import React94 from "react";
11534
+ import React95 from "react";
11375
11535
  import {
11376
11536
  DateRangePickerStateContext,
11377
11537
  Text as Text2
@@ -11381,7 +11541,7 @@ import { mergeProps as mergeProps4, useId as useId11 } from "@react-aria/utils";
11381
11541
  import { omit as omit9 } from "lodash-es";
11382
11542
 
11383
11543
  // src/atoms/DatePicker/RangeCalendar.tsx
11384
- import React93 from "react";
11544
+ import React94 from "react";
11385
11545
  import {
11386
11546
  CalendarCell as CalendarCell2,
11387
11547
  CalendarGrid as CalendarGrid2,
@@ -11421,7 +11581,7 @@ var cell = tv25({
11421
11581
  }
11422
11582
  });
11423
11583
  function RangeCalendar(props) {
11424
- return /* @__PURE__ */ React93.createElement(AriaRangeCalendar, { ...props }, /* @__PURE__ */ React93.createElement(CalendarHeader, null), /* @__PURE__ */ React93.createElement(CalendarGrid2, { className: "[&_td]:px-0" }, /* @__PURE__ */ React93.createElement(CalendarGridHeader, null), /* @__PURE__ */ React93.createElement(CalendarGridBody2, null, (date) => /* @__PURE__ */ React93.createElement(CalendarCell2, { date, className: cellContainer() }, ({ formattedDate, isSelected, isSelectionStart, isSelectionEnd, ...rest }) => /* @__PURE__ */ React93.createElement(
11584
+ return /* @__PURE__ */ React94.createElement(AriaRangeCalendar, { ...props }, /* @__PURE__ */ React94.createElement(CalendarHeader, null), /* @__PURE__ */ React94.createElement(CalendarGrid2, { className: "[&_td]:px-0" }, /* @__PURE__ */ React94.createElement(CalendarGridHeader, null), /* @__PURE__ */ React94.createElement(CalendarGridBody2, null, (date) => /* @__PURE__ */ React94.createElement(CalendarCell2, { date, className: cellContainer() }, ({ formattedDate, isSelected, isSelectionStart, isSelectionEnd, ...rest }) => /* @__PURE__ */ React94.createElement(
11425
11585
  "span",
11426
11586
  {
11427
11587
  className: cell({
@@ -11435,14 +11595,14 @@ function RangeCalendar(props) {
11435
11595
 
11436
11596
  // src/molecules/DatePicker/DateRangePicker.tsx
11437
11597
  function DateRangePickerClearButton() {
11438
- const state = React94.useContext(DateRangePickerStateContext);
11598
+ const state = React95.useContext(DateRangePickerStateContext);
11439
11599
  if (!state) {
11440
11600
  throw new Error("DateRangePickerStateContext is missing a provider");
11441
11601
  }
11442
11602
  if (!state.value.start && !state.value.end) {
11443
11603
  return null;
11444
11604
  }
11445
- return /* @__PURE__ */ React94.createElement(
11605
+ return /* @__PURE__ */ React95.createElement(
11446
11606
  ClearInputButton,
11447
11607
  {
11448
11608
  onPress: () => {
@@ -11452,9 +11612,9 @@ function DateRangePickerClearButton() {
11452
11612
  );
11453
11613
  }
11454
11614
  var RangeCalendarTimeField = ({ granularity, part, ...props }) => {
11455
- const ctx = React94.useContext(DateRangePickerStateContext);
11615
+ const ctx = React95.useContext(DateRangePickerStateContext);
11456
11616
  const labelText = props.labelText ?? (part === "start" ? "Start time" : "End time");
11457
- return /* @__PURE__ */ React94.createElement(
11617
+ return /* @__PURE__ */ React95.createElement(
11458
11618
  TimeField2,
11459
11619
  {
11460
11620
  ...props,
@@ -11466,16 +11626,16 @@ var RangeCalendarTimeField = ({ granularity, part, ...props }) => {
11466
11626
  }
11467
11627
  );
11468
11628
  };
11469
- var DateRangePickerCalendarPropsContext = React94.createContext(null);
11629
+ var DateRangePickerCalendarPropsContext = React95.createContext(null);
11470
11630
  var DateRangePickerCalendar = (props) => {
11471
- const ctx = React94.useContext(DateRangePickerCalendarPropsContext);
11631
+ const ctx = React95.useContext(DateRangePickerCalendarPropsContext);
11472
11632
  const { variant, granularity, errorMessage, presets = [] } = mergeProps4(ctx, props);
11473
11633
  const { dialog, calendar, errorMessage: errorMessageStyle } = datePickerCalendarStyles();
11474
- return /* @__PURE__ */ React94.createElement(Popover, { offset: 0 }, /* @__PURE__ */ React94.createElement(Dialog, { className: dialog() }, presets.length > 0 && /* @__PURE__ */ React94.createElement(Presets, null, presets.map((props2) => /* @__PURE__ */ React94.createElement(RangePreset, { key: `${props2.value.start.toString()}-${props2.value.end.toString()}`, ...props2 }))), /* @__PURE__ */ React94.createElement(Spacing, { gap: "3", className: "p-5" }, /* @__PURE__ */ React94.createElement(RangeCalendar, { className: calendar() }), variant === "datetime" && /* @__PURE__ */ React94.createElement(Box.Flex, { gap: "6" }, /* @__PURE__ */ React94.createElement("div", { className: "flex-1" }, /* @__PURE__ */ React94.createElement(RangeCalendarTimeField, { granularity, part: "start" })), /* @__PURE__ */ React94.createElement("div", { className: "flex-1" }, /* @__PURE__ */ React94.createElement(RangeCalendarTimeField, { granularity, part: "end" }))), errorMessage && /* @__PURE__ */ React94.createElement(Text2, { slot: "errorMessage", className: errorMessageStyle() }, errorMessage))));
11634
+ return /* @__PURE__ */ React95.createElement(Popover, { offset: 0 }, /* @__PURE__ */ React95.createElement(Dialog, { className: dialog() }, presets.length > 0 && /* @__PURE__ */ React95.createElement(Presets, null, presets.map((props2) => /* @__PURE__ */ React95.createElement(RangePreset, { key: `${props2.value.start.toString()}-${props2.value.end.toString()}`, ...props2 }))), /* @__PURE__ */ React95.createElement(Spacing, { gap: "3", className: "p-5" }, /* @__PURE__ */ React95.createElement(RangeCalendar, { className: calendar() }), variant === "datetime" && /* @__PURE__ */ React95.createElement(Box.Flex, { gap: "6" }, /* @__PURE__ */ React95.createElement("div", { className: "flex-1" }, /* @__PURE__ */ React95.createElement(RangeCalendarTimeField, { granularity, part: "start" })), /* @__PURE__ */ React95.createElement("div", { className: "flex-1" }, /* @__PURE__ */ React95.createElement(RangeCalendarTimeField, { granularity, part: "end" }))), errorMessage && /* @__PURE__ */ React95.createElement(Text2, { slot: "errorMessage", className: errorMessageStyle() }, errorMessage))));
11475
11635
  };
11476
11636
  DateRangePickerCalendar.displayName = "DateRangePicker.Calendar";
11477
11637
  var DateRangePickerField = ({ clearSelectionEnabled = true, disabled = false }) => {
11478
- return /* @__PURE__ */ React94.createElement(FieldGroup, { className: "min-w-[200px] w-auto gap-2" }, /* @__PURE__ */ React94.createElement(DateInput, { slot: "start", className: "px-2 py-1" }), /* @__PURE__ */ React94.createElement("span", { "aria-hidden": true, className: "text-muted" }, "-"), /* @__PURE__ */ React94.createElement(DateInput, { slot: "end", className: "flex-1 px-2 py-1" }), /* @__PURE__ */ React94.createElement(Box.Flex, { alignItems: "center", gap: "2" }, clearSelectionEnabled && !disabled && /* @__PURE__ */ React94.createElement(DateRangePickerClearButton, null), /* @__PURE__ */ React94.createElement(CalendarButton, null)));
11638
+ return /* @__PURE__ */ React95.createElement(FieldGroup, { className: "min-w-[200px] w-auto gap-2" }, /* @__PURE__ */ React95.createElement(DateInput, { slot: "start", className: "px-2 py-1" }), /* @__PURE__ */ React95.createElement("span", { "aria-hidden": true, className: "text-muted" }, "-"), /* @__PURE__ */ React95.createElement(DateInput, { slot: "end", className: "flex-1 px-2 py-1" }), /* @__PURE__ */ React95.createElement(Box.Flex, { alignItems: "center", gap: "2" }, clearSelectionEnabled && !disabled && /* @__PURE__ */ React95.createElement(DateRangePickerClearButton, null), /* @__PURE__ */ React95.createElement(CalendarButton, null)));
11479
11639
  };
11480
11640
  DateRangePickerField.displayName = "DateRangePicker.Field";
11481
11641
  var createDateRangePickerBase = (variant) => {
@@ -11489,13 +11649,13 @@ var createDateRangePickerBase = (variant) => {
11489
11649
  children,
11490
11650
  ...props
11491
11651
  }) => {
11492
- const content = children ?? /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(DateRangePickerField, { clearSelectionEnabled, disabled }), /* @__PURE__ */ React94.createElement(DateRangePickerCalendar, { variant, granularity: props.granularity, errorMessage }));
11493
- return /* @__PURE__ */ React94.createElement(
11652
+ const content = children ?? /* @__PURE__ */ React95.createElement(React95.Fragment, null, /* @__PURE__ */ React95.createElement(DateRangePickerField, { clearSelectionEnabled, disabled }), /* @__PURE__ */ React95.createElement(DateRangePickerCalendar, { variant, granularity: props.granularity, errorMessage }));
11653
+ return /* @__PURE__ */ React95.createElement(
11494
11654
  DateRangePickerCalendarPropsContext.Provider,
11495
11655
  {
11496
11656
  value: { variant, granularity: props.granularity, errorMessage, presets }
11497
11657
  },
11498
- /* @__PURE__ */ React94.createElement(DateRangePicker, { ...props, variant, isDisabled: disabled, isInvalid: valid === false }, content)
11658
+ /* @__PURE__ */ React95.createElement(DateRangePicker, { ...props, variant, isDisabled: disabled, isInvalid: valid === false }, content)
11499
11659
  );
11500
11660
  };
11501
11661
  dateRangePicker.Calendar = DateRangePickerCalendar;
@@ -11513,7 +11673,7 @@ var createDateRangePicker = (variant) => {
11513
11673
  const { "data-testid": dataTestId, ...labelControlProps } = getLabelControlProps(props);
11514
11674
  const baseProps = omit9(props, Object.keys(labelControlProps));
11515
11675
  const allProps = { ...baseProps, ...fieldProps, ...errorProps, disabled: props.disabled, valid: props.valid };
11516
- return /* @__PURE__ */ React94.createElement(LabelControl, { ...labelProps, ...labelControlProps, messageId: errorMessageId, className: "Aquarium-DatePicker" }, variant === "date" ? /* @__PURE__ */ React94.createElement(DateRangePickerBase, { ...allProps }) : /* @__PURE__ */ React94.createElement(DateTimeRangePickerBase, { ...allProps }));
11676
+ return /* @__PURE__ */ React95.createElement(LabelControl, { ...labelProps, ...labelControlProps, messageId: errorMessageId, className: "Aquarium-DatePicker" }, variant === "date" ? /* @__PURE__ */ React95.createElement(DateRangePickerBase, { ...allProps }) : /* @__PURE__ */ React95.createElement(DateTimeRangePickerBase, { ...allProps }));
11517
11677
  };
11518
11678
  dateRangePicker.Calendar = DateRangePickerCalendar;
11519
11679
  dateRangePicker.Field = DateRangePickerField;
@@ -11524,14 +11684,14 @@ var DateRangePicker2 = createDateRangePicker("date");
11524
11684
  var DateTimeRangePicker = createDateRangePicker("datetime");
11525
11685
 
11526
11686
  // src/molecules/Dialog/Dialog.tsx
11527
- import React95 from "react";
11687
+ import React96 from "react";
11528
11688
  import { useDialog } from "@react-aria/dialog";
11529
11689
  import { Overlay, useModalOverlay } from "@react-aria/overlays";
11530
11690
  import { useId as useId12 } from "@react-aria/utils";
11531
11691
  import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
11532
11692
  import { omit as omit10 } from "lodash-es";
11533
11693
  var Dialog2 = (props) => {
11534
- const ref = React95.useRef(null);
11694
+ const ref = React96.useRef(null);
11535
11695
  const { open, onClose } = props;
11536
11696
  const state = useOverlayTriggerState2({ isOpen: open, onOpenChange: (isOpen) => !isOpen && onClose?.() });
11537
11697
  const { modalProps, underlayProps } = useModalOverlay(
@@ -11542,7 +11702,7 @@ var Dialog2 = (props) => {
11542
11702
  if (!state.isOpen) {
11543
11703
  return null;
11544
11704
  }
11545
- return /* @__PURE__ */ React95.createElement(Overlay, null, /* @__PURE__ */ React95.createElement(Modal, { className: "Aquarium-Dialog", open: true }, /* @__PURE__ */ React95.createElement(Modal.BackDrop, { ...underlayProps }), /* @__PURE__ */ React95.createElement(Modal.Dialog, { ref, size: "sm", isResponsive: false, ...modalProps }, /* @__PURE__ */ React95.createElement(DialogWrapper, { ...props }))));
11705
+ return /* @__PURE__ */ React96.createElement(Overlay, null, /* @__PURE__ */ React96.createElement(Modal, { className: "Aquarium-Dialog", open: true }, /* @__PURE__ */ React96.createElement(Modal.BackDrop, { ...underlayProps }), /* @__PURE__ */ React96.createElement(Modal.Dialog, { ref, size: "sm", isResponsive: false, ...modalProps }, /* @__PURE__ */ React96.createElement(DialogWrapper, { ...props }))));
11546
11706
  };
11547
11707
  var DialogWrapper = ({
11548
11708
  title,
@@ -11551,7 +11711,7 @@ var DialogWrapper = ({
11551
11711
  primaryAction,
11552
11712
  secondaryAction
11553
11713
  }) => {
11554
- const ref = React95.useRef(null);
11714
+ const ref = React96.useRef(null);
11555
11715
  const labelledBy = useId12();
11556
11716
  const describedBy = useId12();
11557
11717
  const { dialogProps } = useDialog(
@@ -11562,34 +11722,34 @@ var DialogWrapper = ({
11562
11722
  },
11563
11723
  ref
11564
11724
  );
11565
- return /* @__PURE__ */ React95.createElement("div", { ref, ...dialogProps, className: "outline-none" }, /* @__PURE__ */ React95.createElement(Modal.Header, { className: "icon-stroke-2" }, /* @__PURE__ */ React95.createElement(Icon, { icon: DIALOG_ICONS_AND_COLORS[type].icon, color: DIALOG_ICONS_AND_COLORS[type].color, fontSize: 20 }), /* @__PURE__ */ React95.createElement(Modal.Title, { id: labelledBy, variant: "large", color: DIALOG_ICONS_AND_COLORS[type].color }, title)), /* @__PURE__ */ React95.createElement(Modal.Body, { id: describedBy }, /* @__PURE__ */ React95.createElement(Typography2.Default, null, children)), /* @__PURE__ */ React95.createElement(Modal.Footer, null, /* @__PURE__ */ React95.createElement(Modal.Actions, { className: "gap-4" }, secondaryAction && /* @__PURE__ */ React95.createElement(Button2.Ghost, { key: secondaryAction.text, ...omit10(secondaryAction, "text") }, secondaryAction.text), /* @__PURE__ */ React95.createElement(Button2.Secondary, { key: primaryAction.text, ...omit10(primaryAction, "text") }, primaryAction.text))));
11725
+ return /* @__PURE__ */ React96.createElement("div", { ref, ...dialogProps, className: "outline-none" }, /* @__PURE__ */ React96.createElement(Modal.Header, { className: "icon-stroke-2" }, /* @__PURE__ */ React96.createElement(Icon, { icon: DIALOG_ICONS_AND_COLORS[type].icon, color: DIALOG_ICONS_AND_COLORS[type].color, fontSize: 20 }), /* @__PURE__ */ React96.createElement(Modal.Title, { id: labelledBy, variant: "large", color: DIALOG_ICONS_AND_COLORS[type].color }, title)), /* @__PURE__ */ React96.createElement(Modal.Body, { id: describedBy }, /* @__PURE__ */ React96.createElement(Typography2.Default, null, children)), /* @__PURE__ */ React96.createElement(Modal.Footer, null, /* @__PURE__ */ React96.createElement(Modal.Actions, { className: "gap-4" }, secondaryAction && /* @__PURE__ */ React96.createElement(Button2.Ghost, { key: secondaryAction.text, ...omit10(secondaryAction, "text") }, secondaryAction.text), /* @__PURE__ */ React96.createElement(Button2.Secondary, { key: primaryAction.text, ...omit10(primaryAction, "text") }, primaryAction.text))));
11566
11726
  };
11567
11727
 
11568
11728
  // src/molecules/Drawer/Drawer.tsx
11569
- import React98 from "react";
11729
+ import React99 from "react";
11570
11730
  import { Dialog as AriaDialog3, Modal as AriaModal2, ModalOverlay as AriaModalOverlay2 } from "react-aria-components";
11571
11731
  import { animated as animated5, useSpring as useSpring4 } from "@react-spring/web";
11572
11732
  import { clsx as clsx29 } from "clsx";
11573
11733
  import { castArray as castArray4, omit as omit11 } from "lodash-es";
11574
11734
 
11575
11735
  // src/molecules/Modal/ModalTitle.tsx
11576
- import React96 from "react";
11736
+ import React97 from "react";
11577
11737
  import { HeadingContext, useContextProps } from "react-aria-components";
11578
11738
  var ModalTitle = ({ children, ...props }) => {
11579
11739
  const [ctxProps] = useContextProps({ ...props, slot: "title" }, null, HeadingContext);
11580
- return /* @__PURE__ */ React96.createElement(Modal.Title, { id: ctxProps.id, ...props }, children);
11740
+ return /* @__PURE__ */ React97.createElement(Modal.Title, { id: ctxProps.id, ...props }, children);
11581
11741
  };
11582
11742
 
11583
11743
  // src/molecules/Tabs/Tabs.tsx
11584
- import React97, { useEffect as useEffect10, useLayoutEffect as useLayoutEffect3, useRef as useRef12, useState as useState11 } from "react";
11744
+ import React98, { useEffect as useEffect10, useLayoutEffect as useLayoutEffect3, useRef as useRef12, useState as useState10 } from "react";
11585
11745
  import { clsx as clsx28 } from "clsx";
11586
11746
  import { isNumber as isNumber6, kebabCase } from "lodash-es";
11587
11747
  var isTabComponent = (c) => {
11588
- return React97.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
11748
+ return React98.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
11589
11749
  };
11590
- var Tab = React97.forwardRef(
11750
+ var Tab = React98.forwardRef(
11591
11751
  ({ className, id, title, children }, ref) => {
11592
- return /* @__PURE__ */ React97.createElement(
11752
+ return /* @__PURE__ */ React98.createElement(
11593
11753
  "div",
11594
11754
  {
11595
11755
  ref,
@@ -11603,10 +11763,10 @@ var Tab = React97.forwardRef(
11603
11763
  );
11604
11764
  }
11605
11765
  );
11606
- var TabContainer = ({ className, children, ...rest }) => /* @__PURE__ */ React97.createElement("div", { ...rest, className: clsx28("py-6 z-0", className) }, children);
11766
+ var TabContainer = ({ className, children, ...rest }) => /* @__PURE__ */ React98.createElement("div", { ...rest, className: clsx28("py-6 z-0", className) }, children);
11607
11767
  var ModalTab = Tab;
11608
11768
  var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
11609
- const Tab2 = React97.forwardRef(
11769
+ const Tab2 = React98.forwardRef(
11610
11770
  ({
11611
11771
  id,
11612
11772
  value,
@@ -11625,11 +11785,11 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
11625
11785
  const _id = id ?? kebabCase(title);
11626
11786
  let statusIcon = void 0;
11627
11787
  if (status === "warning") {
11628
- statusIcon = /* @__PURE__ */ React97.createElement(InlineIcon, { icon: warningSign_default, color: "warning-graphic" });
11788
+ statusIcon = /* @__PURE__ */ React98.createElement(InlineIcon, { icon: warningSign_default, color: "warning-graphic" });
11629
11789
  } else if (status === "error") {
11630
- statusIcon = /* @__PURE__ */ React97.createElement(InlineIcon, { icon: warningSign_default, color: "danger-graphic" });
11790
+ statusIcon = /* @__PURE__ */ React98.createElement(InlineIcon, { icon: warningSign_default, color: "danger-graphic" });
11631
11791
  }
11632
- const tab = /* @__PURE__ */ React97.createElement(
11792
+ const tab = /* @__PURE__ */ React98.createElement(
11633
11793
  Component,
11634
11794
  {
11635
11795
  ref,
@@ -11651,7 +11811,7 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
11651
11811
  tabIndex: disabled ? void 0 : 0,
11652
11812
  ...rest
11653
11813
  },
11654
- /* @__PURE__ */ React97.createElement(
11814
+ /* @__PURE__ */ React98.createElement(
11655
11815
  Typography2,
11656
11816
  {
11657
11817
  htmlTag: "div",
@@ -11662,20 +11822,20 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
11662
11822
  !selected && !disabled && "group-hover:text-intense group-focus-visible:text-intense"
11663
11823
  )
11664
11824
  },
11665
- showNotification ? /* @__PURE__ */ React97.createElement(
11825
+ showNotification ? /* @__PURE__ */ React98.createElement(
11666
11826
  Badge.Notification,
11667
11827
  {
11668
11828
  right: "-4px",
11669
11829
  top: "3px",
11670
11830
  className: selected && !disabled ? void 0 : "[color:inherit]"
11671
11831
  },
11672
- /* @__PURE__ */ React97.createElement("span", { className: "whitespace-nowrap" }, title)
11673
- ) : /* @__PURE__ */ React97.createElement("span", { className: "whitespace-nowrap" }, title),
11674
- isNumber6(badge) && /* @__PURE__ */ React97.createElement(Typography2, { htmlTag: "span", variant: "default", color: "intense", className: "leading-none" }, /* @__PURE__ */ React97.createElement(Badge, { kind: !selected ? "outlined" : "filled", value: badge })),
11832
+ /* @__PURE__ */ React98.createElement("span", { className: "whitespace-nowrap" }, title)
11833
+ ) : /* @__PURE__ */ React98.createElement("span", { className: "whitespace-nowrap" }, title),
11834
+ isNumber6(badge) && /* @__PURE__ */ React98.createElement(Typography2, { htmlTag: "span", variant: "default", color: "intense", className: "leading-none" }, /* @__PURE__ */ React98.createElement(Badge, { kind: !selected ? "outlined" : "filled", value: badge })),
11675
11835
  statusIcon
11676
11836
  )
11677
11837
  );
11678
- return tooltip ? /* @__PURE__ */ React97.createElement(Tooltip, { content: tooltip }, tab) : tab;
11838
+ return tooltip ? /* @__PURE__ */ React98.createElement(Tooltip, { content: tooltip }, tab) : tab;
11679
11839
  }
11680
11840
  );
11681
11841
  Tab2.displayName = displayName;
@@ -11685,20 +11845,20 @@ var TabItem = asTabItem("button", "TabItem");
11685
11845
  var CARET_OFFSET = 24;
11686
11846
  var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderChildren) => {
11687
11847
  const Tabs2 = (props) => {
11688
- const { className, value, defaultValue, onChange, children } = props;
11689
- const childArr = React97.Children.toArray(children);
11848
+ const { className, value, defaultValue, onChange, ["aria-label"]: ariaLabel, children } = props;
11849
+ const childArr = React98.Children.toArray(children);
11690
11850
  const firstTab = childArr[0];
11691
11851
  const firstTabValue = isTabComponent(firstTab) ? firstTab.props.value : -1;
11692
- const [selected, setSelected] = useState11(value ?? defaultValue ?? firstTabValue ?? 0);
11693
- const [leftCaret, showLeftCaret] = useState11(false);
11694
- const [rightCaret, showRightCaret] = useState11(false);
11852
+ const [selected, setSelected] = useState10(value ?? defaultValue ?? firstTabValue ?? 0);
11853
+ const [leftCaret, showLeftCaret] = useState10(false);
11854
+ const [rightCaret, showRightCaret] = useState10(false);
11695
11855
  const parentRef = useRef12(null);
11696
11856
  const containerRef = useRef12(null);
11697
11857
  const tabsRef = useRef12(null);
11698
11858
  const revealSelectedTab = ({ smooth }) => {
11699
11859
  const container2 = containerRef.current;
11700
11860
  const tabs = tabsRef.current;
11701
- const values = React97.Children.map(
11861
+ const values = React98.Children.map(
11702
11862
  children,
11703
11863
  (tab, i) => tab?.props.value ?? i
11704
11864
  );
@@ -11736,7 +11896,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
11736
11896
  updateCarets();
11737
11897
  setSelected(value);
11738
11898
  revealSelectedTab({ smooth: value !== selected });
11739
- }, [value, React97.Children.count(children)]);
11899
+ }, [value, React98.Children.count(children)]);
11740
11900
  useLayoutEffect3(() => {
11741
11901
  updateCarets();
11742
11902
  containerRef.current?.addEventListener("scroll", updateCarets);
@@ -11798,22 +11958,22 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
11798
11958
  const handleSelected = (key) => {
11799
11959
  (onChange ?? setSelected)(key);
11800
11960
  };
11801
- React97.Children.forEach(children, (c) => {
11961
+ React98.Children.forEach(children, (c) => {
11802
11962
  if (c && !isTabComponent(c)) {
11803
11963
  throw new Error("<Tabs> can only have <Tabs.Tab> components as children");
11804
11964
  }
11805
11965
  });
11806
- return /* @__PURE__ */ React97.createElement("div", { ref: parentRef, className: clsx28("Aquarium-Tabs h-full", className) }, /* @__PURE__ */ React97.createElement("div", { className: "relative flex items-center border-b border-muted" }, /* @__PURE__ */ React97.createElement("div", { ref: containerRef, className: "overflow-y-auto scrollbar-hide mb-[-1px] h-auto" }, /* @__PURE__ */ React97.createElement(
11966
+ return /* @__PURE__ */ React98.createElement("div", { ref: parentRef, className: clsx28("Aquarium-Tabs h-full", className) }, /* @__PURE__ */ React98.createElement("div", { className: "relative flex items-center border-b border-muted" }, /* @__PURE__ */ React98.createElement("div", { ref: containerRef, className: "overflow-y-auto scrollbar-hide mb-[-1px] h-auto" }, /* @__PURE__ */ React98.createElement(
11807
11967
  "div",
11808
11968
  {
11809
11969
  ref: tabsRef,
11810
11970
  role: "tablist",
11811
- "aria-label": "tabs",
11971
+ "aria-label": ariaLabel ? ariaLabel : "tabs",
11812
11972
  className: "inline-flex items-center cursor-pointer font-normal h-full"
11813
11973
  },
11814
- React97.Children.map(
11974
+ React98.Children.map(
11815
11975
  children,
11816
- (tab, index) => tab ? /* @__PURE__ */ React97.createElement(
11976
+ (tab, index) => tab ? /* @__PURE__ */ React98.createElement(
11817
11977
  TabItemComponent,
11818
11978
  {
11819
11979
  key: tab.props.value,
@@ -11825,26 +11985,26 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
11825
11985
  }
11826
11986
  ) : void 0
11827
11987
  )
11828
- )), leftCaret && /* @__PURE__ */ React97.createElement("div", { className: "absolute left-0 bg-gradient-to-r from-white via-white z-20 py-3 pr-4" }, /* @__PURE__ */ React97.createElement(
11988
+ )), leftCaret && /* @__PURE__ */ React98.createElement("div", { className: "absolute left-0 bg-gradient-to-r from-white via-white z-20 py-3 pr-4" }, /* @__PURE__ */ React98.createElement(
11829
11989
  "div",
11830
11990
  {
11831
11991
  onClick: () => handleScrollToNext("left"),
11832
11992
  className: "hover:bg-muted p-2 leading-none cursor-pointer"
11833
11993
  },
11834
- /* @__PURE__ */ React97.createElement(InlineIcon, { icon: chevronLeft_default })
11835
- )), rightCaret && /* @__PURE__ */ React97.createElement(
11994
+ /* @__PURE__ */ React98.createElement(InlineIcon, { icon: chevronLeft_default })
11995
+ )), rightCaret && /* @__PURE__ */ React98.createElement(
11836
11996
  "div",
11837
11997
  {
11838
11998
  onClick: () => handleScrollToNext("right"),
11839
11999
  className: "absolute right-0 bg-gradient-to-l from-white via-white z-20 py-3 pl-4"
11840
12000
  },
11841
- /* @__PURE__ */ React97.createElement(
12001
+ /* @__PURE__ */ React98.createElement(
11842
12002
  "div",
11843
12003
  {
11844
12004
  onClick: () => handleScrollToNext("right"),
11845
12005
  className: "hover:bg-muted p-2 leading-none cursor-pointer"
11846
12006
  },
11847
- /* @__PURE__ */ React97.createElement(InlineIcon, { icon: chevronRight_default })
12007
+ /* @__PURE__ */ React98.createElement(InlineIcon, { icon: chevronRight_default })
11848
12008
  )
11849
12009
  )), renderChildren(children, selected, props));
11850
12010
  };
@@ -11852,7 +12012,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
11852
12012
  Tabs2.Tab = TabComponent;
11853
12013
  return Tabs2;
11854
12014
  };
11855
- var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React97.createElement(TabContainer, null, children.find(
12015
+ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React98.createElement(TabContainer, null, children.find(
11856
12016
  (node, index) => node?.props.value === selected || index === selected
11857
12017
  )));
11858
12018
 
@@ -11878,7 +12038,7 @@ var Drawer = ({
11878
12038
  secondaryActions,
11879
12039
  closeOnEsc = true
11880
12040
  }) => {
11881
- const [hidden, setHidden] = React98.useState(!open);
12041
+ const [hidden, setHidden] = React99.useState(!open);
11882
12042
  if (open && hidden) {
11883
12043
  setHidden(!open);
11884
12044
  }
@@ -11901,10 +12061,10 @@ var Drawer = ({
11901
12061
  }
11902
12062
  const dialogSize = size === "lg" ? "full" : size;
11903
12063
  const styles = modalStyles({ kind: "drawer", size: dialogSize });
11904
- const childElements = React98.Children.toArray(children).filter(React98.isValidElement);
12064
+ const childElements = React99.Children.toArray(children).filter(React99.isValidElement);
11905
12065
  const onlyChild = childElements.length === 1 ? childElements[0] : null;
11906
12066
  const hasTabs = isComponentType(onlyChild, Tabs);
11907
- return /* @__PURE__ */ React98.createElement(
12067
+ return /* @__PURE__ */ React99.createElement(
11908
12068
  AriaModalOverlay2,
11909
12069
  {
11910
12070
  isOpen: !hidden,
@@ -11913,27 +12073,27 @@ var Drawer = ({
11913
12073
  isKeyboardDismissDisabled: !closeOnEsc,
11914
12074
  className: styles.overlay({ className: "Aquarium-Drawer" })
11915
12075
  },
11916
- /* @__PURE__ */ React98.createElement(AnimatedBackDrop, { style: { opacity } }),
11917
- /* @__PURE__ */ React98.createElement(AriaModal2, null, /* @__PURE__ */ React98.createElement(AnimatedDialog, { kind: "drawer", "aria-modal": "true", size: dialogSize, style: { position: "fixed", right } }, /* @__PURE__ */ React98.createElement(AriaDialog3, { className: "flex flex-col grow overflow-y-auto" }, ({ close }) => /* @__PURE__ */ React98.createElement(React98.Fragment, null, /* @__PURE__ */ React98.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React98.createElement(Button2.Icon, { "aria-label": "Close", icon: cross_default, onClick: close })), /* @__PURE__ */ React98.createElement(Modal.Header, { className: clsx29({ "pb-3": hasTabs }) }, /* @__PURE__ */ React98.createElement(ModalTitle, { kind: "drawer" }, title)), hasTabs ? /* @__PURE__ */ React98.createElement(
12076
+ /* @__PURE__ */ React99.createElement(AnimatedBackDrop, { style: { opacity } }),
12077
+ /* @__PURE__ */ React99.createElement(AriaModal2, null, /* @__PURE__ */ React99.createElement(AnimatedDialog, { kind: "drawer", "aria-modal": "true", size: dialogSize, style: { position: "fixed", right } }, /* @__PURE__ */ React99.createElement(AriaDialog3, { className: "flex flex-col grow overflow-y-auto" }, ({ close }) => /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React99.createElement(Button2.Icon, { "aria-label": "Close", icon: cross_default, onClick: close })), /* @__PURE__ */ React99.createElement(Modal.Header, { className: clsx29({ "pb-3": hasTabs }) }, /* @__PURE__ */ React99.createElement(ModalTitle, { kind: "drawer" }, title)), hasTabs ? /* @__PURE__ */ React99.createElement(
11918
12078
  DrawerTabs,
11919
12079
  {
11920
12080
  ...onlyChild.props,
11921
12081
  className: "[&>div:first-child]:px-5 grow flex flex-col overflow-y-auto"
11922
12082
  }
11923
- ) : /* @__PURE__ */ React98.createElement(Modal.Body, { tabIndex: 0, noFooter: !(secondaryActions ?? primaryAction) }, children), (secondaryActions ?? primaryAction) && /* @__PURE__ */ React98.createElement(Modal.Footer, null, /* @__PURE__ */ React98.createElement(Modal.Actions, { className: size === "sm" ? "flex-col" : void 0 }, size !== "sm" && menu && /* @__PURE__ */ React98.createElement(Box.Flex, { alignItems: "center" }, /* @__PURE__ */ React98.createElement(DropdownMenu2, { onAction: (action) => onAction(action), onOpenChange: onMenuOpenChange }, /* @__PURE__ */ React98.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React98.createElement(Button2.Icon, { "aria-label": menuAriaLabel ?? "Context menu", icon: more_default })), menu)), secondaryActions && castArray4(secondaryActions).filter(Boolean).map(({ text, ...action }) => /* @__PURE__ */ React98.createElement(Button2.Secondary, { key: text, ...action }, text)), primaryAction && /* @__PURE__ */ React98.createElement(Button2.Primary, { key: primaryAction.text, ...omit11(primaryAction, "text") }, primaryAction.text)))))))
12083
+ ) : /* @__PURE__ */ React99.createElement(Modal.Body, { tabIndex: 0, noFooter: !(secondaryActions ?? primaryAction) }, children), (secondaryActions ?? primaryAction) && /* @__PURE__ */ React99.createElement(Modal.Footer, null, /* @__PURE__ */ React99.createElement(Modal.Actions, { className: size === "sm" ? "flex-col" : void 0 }, size !== "sm" && menu && /* @__PURE__ */ React99.createElement(Box.Flex, { alignItems: "center" }, /* @__PURE__ */ React99.createElement(DropdownMenu2, { onAction: (action) => onAction(action), onOpenChange: onMenuOpenChange }, /* @__PURE__ */ React99.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React99.createElement(Button2.Icon, { "aria-label": menuAriaLabel ?? "Context menu", icon: more_default })), menu)), secondaryActions && castArray4(secondaryActions).filter(Boolean).map(({ text, ...action }) => /* @__PURE__ */ React99.createElement(Button2.Secondary, { key: text, ...action }, text)), primaryAction && /* @__PURE__ */ React99.createElement(Button2.Primary, { key: primaryAction.text, ...omit11(primaryAction, "text") }, primaryAction.text)))))))
11924
12084
  );
11925
12085
  };
11926
- var DrawerTabs = createTabsComponent(ModalTab, TabItem, "DrawerTabs", (children, selected) => /* @__PURE__ */ React98.createElement(Modal.Body, { className: "h-full" }, /* @__PURE__ */ React98.createElement(TabContainer, { className: "!py-4" }, children.find(
12086
+ var DrawerTabs = createTabsComponent(ModalTab, TabItem, "DrawerTabs", (children, selected) => /* @__PURE__ */ React99.createElement(Modal.Body, { className: "h-full" }, /* @__PURE__ */ React99.createElement(TabContainer, { className: "!py-4" }, children.find(
11927
12087
  (node, index) => node?.props.value === selected || index === selected
11928
12088
  ))));
11929
12089
 
11930
12090
  // src/molecules/Dropdown/Dropdown.tsx
11931
- import React100 from "react";
12091
+ import React101 from "react";
11932
12092
  import { OverlayTriggerStateContext as OverlayTriggerStateContext2 } from "react-aria-components";
11933
12093
  import { clsx as clsx30 } from "clsx";
11934
12094
 
11935
12095
  // src/molecules/Popover/Popover.tsx
11936
- import React99, { createContext as createContext6 } from "react";
12096
+ import React100, { createContext as createContext6 } from "react";
11937
12097
  import { DialogTrigger, OverlayTriggerStateContext } from "react-aria-components";
11938
12098
  import { mergeProps as mergeProps5 } from "@react-aria/utils";
11939
12099
  var PopoverPropsContext = createContext6({});
@@ -11942,32 +12102,32 @@ var Popover2 = ({ children, onOpenChange: _onOpenChange, onClose, onOpen, ...pro
11942
12102
  _onOpenChange?.(isOpen);
11943
12103
  isOpen ? onOpen?.() : onClose?.();
11944
12104
  };
11945
- return /* @__PURE__ */ React99.createElement(PopoverPropsContext.Provider, { value: props }, /* @__PURE__ */ React99.createElement(DialogTrigger, { ...props, onOpenChange }, children));
12105
+ return /* @__PURE__ */ React100.createElement(PopoverPropsContext.Provider, { value: props }, /* @__PURE__ */ React100.createElement(DialogTrigger, { ...props, onOpenChange }, children));
11946
12106
  };
11947
12107
  Popover2.displayName = "Popover";
11948
12108
  var Trigger = ({ children }) => {
11949
- return /* @__PURE__ */ React99.createElement(Pressable, { "aria-haspopup": "true" }, children);
12109
+ return /* @__PURE__ */ React100.createElement(Pressable, { "aria-haspopup": "true" }, children);
11950
12110
  };
11951
12111
  Trigger.displayName = "Popover.Trigger";
11952
12112
  Popover2.Trigger = Trigger;
11953
12113
  var Panel = ({ className, children }) => {
11954
- const { offset = 0, onOpenChange, ...props } = React99.useContext(PopoverPropsContext);
11955
- return /* @__PURE__ */ React99.createElement(Popover, { ...props, className, offset }, /* @__PURE__ */ React99.createElement(Dialog, null, children));
12114
+ const { offset = 0, onOpenChange, ...props } = React100.useContext(PopoverPropsContext);
12115
+ return /* @__PURE__ */ React100.createElement(Popover, { ...props, className, offset }, /* @__PURE__ */ React100.createElement(Dialog, null, children));
11956
12116
  };
11957
12117
  Panel.displayName = "Popover.Panel";
11958
12118
  Popover2.Panel = Panel;
11959
12119
  var CloseToggle = ({ children }) => {
11960
- const ctx = React99.useContext(OverlayTriggerStateContext);
12120
+ const ctx = React100.useContext(OverlayTriggerStateContext);
11961
12121
  const onClick = ctx?.close;
11962
- const child = React99.Children.only(children);
11963
- return React99.cloneElement(child, { ...mergeProps5(child.props, { onClick }) });
12122
+ const child = React100.Children.only(children);
12123
+ return React100.cloneElement(child, { ...mergeProps5(child.props, { onClick }) });
11964
12124
  };
11965
12125
  CloseToggle.displayName = "Popover.CloseToggle";
11966
12126
  Popover2.CloseToggle = CloseToggle;
11967
12127
 
11968
12128
  // src/molecules/Dropdown/Dropdown.tsx
11969
12129
  var Dropdown = ({ children, content, placement = "bottom-left" }) => {
11970
- return /* @__PURE__ */ React100.createElement(Popover2, { placement }, /* @__PURE__ */ React100.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React100.createElement(Popover2.Panel, { className: "Aquarium-Dropdown" }, content));
12130
+ return /* @__PURE__ */ React101.createElement(Popover2, { placement }, /* @__PURE__ */ React101.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React101.createElement(Popover2.Panel, { className: "Aquarium-Dropdown" }, content));
11971
12131
  };
11972
12132
  var DropdownMenu3 = ({
11973
12133
  title,
@@ -11976,13 +12136,13 @@ var DropdownMenu3 = ({
11976
12136
  triggerId,
11977
12137
  setClose = () => void 0
11978
12138
  }) => {
11979
- const menuRef = React100.useRef(null);
11980
- React100.useEffect(() => {
12139
+ const menuRef = React101.useRef(null);
12140
+ React101.useEffect(() => {
11981
12141
  const id = setTimeout(() => (menuRef.current?.children[0]).focus());
11982
12142
  return () => clearTimeout(id);
11983
12143
  }, [menuRef.current]);
11984
- return /* @__PURE__ */ React100.createElement("div", { style: { minWidth: "250px" }, className: "py-3 bg-overlay" }, !!title && /* @__PURE__ */ React100.createElement("div", { className: "px-4 py-4 text-left text-intense typography-default-strong" }, title), /* @__PURE__ */ React100.createElement("ol", { role: "menu", ref: menuRef, id: contentId, "aria-labelledby": triggerId }, React100.Children.map(children, (child) => {
11985
- return React100.cloneElement(child, { setClose });
12144
+ return /* @__PURE__ */ React101.createElement("div", { style: { minWidth: "250px" }, className: "py-3 bg-overlay" }, !!title && /* @__PURE__ */ React101.createElement("div", { className: "px-4 py-4 text-left text-intense typography-default-strong" }, title), /* @__PURE__ */ React101.createElement("ol", { role: "menu", ref: menuRef, id: contentId, "aria-labelledby": triggerId }, React101.Children.map(children, (child) => {
12145
+ return React101.cloneElement(child, { setClose });
11986
12146
  })));
11987
12147
  };
11988
12148
  var DropdownItem = ({
@@ -11995,7 +12155,7 @@ var DropdownItem = ({
11995
12155
  setClose = () => void 0,
11996
12156
  ...props
11997
12157
  }) => {
11998
- const ctx = React100.useContext(OverlayTriggerStateContext2);
12158
+ const ctx = React101.useContext(OverlayTriggerStateContext2);
11999
12159
  const handleSelect = () => {
12000
12160
  onSelect?.();
12001
12161
  ctx?.close();
@@ -12029,8 +12189,8 @@ var DropdownItem = ({
12029
12189
  handleSelect();
12030
12190
  }
12031
12191
  };
12032
- const itemContent = /* @__PURE__ */ React100.createElement("div", { className: "py-3 px-4" }, children);
12033
- return /* @__PURE__ */ React100.createElement(
12192
+ const itemContent = /* @__PURE__ */ React101.createElement("div", { className: "py-3 px-4" }, children);
12193
+ return /* @__PURE__ */ React101.createElement(
12034
12194
  "li",
12035
12195
  {
12036
12196
  role: "menuitem",
@@ -12044,14 +12204,14 @@ var DropdownItem = ({
12044
12204
  "text-danger-default": color === "danger" && !disabled
12045
12205
  })
12046
12206
  },
12047
- tooltip ? /* @__PURE__ */ React100.createElement(Tooltip, { content: tooltip, placement: tooltipPlacement, display: "block" }, /* @__PURE__ */ React100.createElement("div", { tabIndex: 0, className: "grow" }, itemContent)) : itemContent
12207
+ tooltip ? /* @__PURE__ */ React101.createElement(Tooltip, { content: tooltip, placement: tooltipPlacement, display: "block" }, /* @__PURE__ */ React101.createElement("div", { tabIndex: 0, className: "grow" }, itemContent)) : itemContent
12048
12208
  );
12049
12209
  };
12050
12210
  Dropdown.Menu = DropdownMenu3;
12051
12211
  Dropdown.Item = DropdownItem;
12052
12212
 
12053
12213
  // src/molecules/EmptyState/EmptyState.tsx
12054
- import React101 from "react";
12214
+ import React102 from "react";
12055
12215
  import { tv as tv26 } from "tailwind-variants";
12056
12216
  var EmptyStateLayout = /* @__PURE__ */ ((EmptyStateLayout2) => {
12057
12217
  EmptyStateLayout2["Vertical"] = "vertical";
@@ -12105,7 +12265,7 @@ var EmptyState2 = ({
12105
12265
  borderStyle = "dashed",
12106
12266
  fullHeight = isVerticalLayout(layout) ? true : false
12107
12267
  }) => {
12108
- return /* @__PURE__ */ React101.createElement(
12268
+ return /* @__PURE__ */ React102.createElement(
12109
12269
  Box.Flex,
12110
12270
  {
12111
12271
  className: emptyStateClasses({
@@ -12114,30 +12274,30 @@ var EmptyState2 = ({
12114
12274
  fullHeight
12115
12275
  })
12116
12276
  },
12117
- Image2 && (typeof Image2 === "string" ? /* @__PURE__ */ React101.createElement(
12277
+ Image2 && (typeof Image2 === "string" ? /* @__PURE__ */ React102.createElement(
12118
12278
  "img",
12119
12279
  {
12120
12280
  src: Image2,
12121
12281
  alt: imageAlt,
12122
12282
  style: { width: imageWidth ? `${imageWidth}px` : void 0, height: "auto" }
12123
12283
  }
12124
- ) : /* @__PURE__ */ React101.createElement("div", { className: "animate-draw" }, /* @__PURE__ */ React101.createElement(Image2, null))),
12125
- /* @__PURE__ */ React101.createElement(
12284
+ ) : /* @__PURE__ */ React102.createElement("div", { className: "animate-draw" }, /* @__PURE__ */ React102.createElement(Image2, null))),
12285
+ /* @__PURE__ */ React102.createElement(
12126
12286
  Box.Flex,
12127
12287
  {
12128
12288
  className: emptyStateContentClasses({
12129
12289
  layout: isVerticalLayout(layout) ? "vertical" : "horizontal"
12130
12290
  })
12131
12291
  },
12132
- /* @__PURE__ */ React101.createElement("div", { className: "flex flex-col gap-3" }, /* @__PURE__ */ React101.createElement(Typography2.Subheading, { htmlTag: "h2" }, title), children && /* @__PURE__ */ React101.createElement(Box, { width: isVerticalLayout(layout) ? "3/4" : "full", marginX: "auto" }, /* @__PURE__ */ React101.createElement(Typography2.Default, null, children))),
12133
- (secondaryAction ?? primaryAction) && /* @__PURE__ */ React101.createElement(Box.Flex, { gap: "4", justifyContent: "center", alignItems: "center", flexWrap: "wrap" }, primaryAction && renderAction({ kind: "primary", action: primaryAction }), secondaryAction && renderAction({ kind: "secondary", action: secondaryAction })),
12134
- footer && /* @__PURE__ */ React101.createElement(Box, null, /* @__PURE__ */ React101.createElement(Typography2.Small, { color: "default" }, footer))
12292
+ /* @__PURE__ */ React102.createElement("div", { className: "flex flex-col gap-3" }, /* @__PURE__ */ React102.createElement(Typography2.Subheading, { htmlTag: "h2" }, title), children && /* @__PURE__ */ React102.createElement(Box, { width: isVerticalLayout(layout) ? "3/4" : "full", marginX: "auto" }, /* @__PURE__ */ React102.createElement(Typography2.Default, null, children))),
12293
+ (secondaryAction ?? primaryAction) && /* @__PURE__ */ React102.createElement(Box.Flex, { gap: "4", justifyContent: "center", alignItems: "center", flexWrap: "wrap" }, primaryAction && renderAction({ kind: "primary", action: primaryAction }), secondaryAction && renderAction({ kind: "secondary", action: secondaryAction })),
12294
+ footer && /* @__PURE__ */ React102.createElement(Box, null, /* @__PURE__ */ React102.createElement(Typography2.Small, { color: "default" }, footer))
12135
12295
  )
12136
12296
  );
12137
12297
  };
12138
12298
 
12139
12299
  // src/atoms/Filter/Filter.tsx
12140
- import React102 from "react";
12300
+ import React103 from "react";
12141
12301
  import {
12142
12302
  Button as AriaButton4,
12143
12303
  DatePickerStateContext as AriaDatePickerStateContext2,
@@ -12178,8 +12338,8 @@ var FilterTrigger = ({
12178
12338
  clearSelectionEnabled = true,
12179
12339
  ...props
12180
12340
  }) => {
12181
- const ariaDatePickerState = React102.useContext(AriaDatePickerStateContext2);
12182
- const ariaDateRangePickerState = React102.useContext(AriaDateRangePickerStateContext2);
12341
+ const ariaDatePickerState = React103.useContext(AriaDatePickerStateContext2);
12342
+ const ariaDateRangePickerState = React103.useContext(AriaDateRangePickerStateContext2);
12183
12343
  const isUsedInsideDatePicker = !!ariaDatePickerState?.value;
12184
12344
  const isUsedInsideDateRangePicker = !!ariaDateRangePickerState?.value.start && !!ariaDateRangePickerState.value.end;
12185
12345
  const onClearDatePickerRelated = () => {
@@ -12191,14 +12351,14 @@ var FilterTrigger = ({
12191
12351
  };
12192
12352
  const hasValue = !!value || isUsedInsideDatePicker || isUsedInsideDateRangePicker;
12193
12353
  const showClearButton = clearSelectionEnabled && (!!onClear && !!value || isUsedInsideDatePicker || isUsedInsideDateRangePicker);
12194
- return /* @__PURE__ */ React102.createElement(
12354
+ return /* @__PURE__ */ React103.createElement(
12195
12355
  AriaGroup,
12196
12356
  {
12197
12357
  ...props,
12198
12358
  isInvalid: error,
12199
12359
  className: (renderProps) => filterWrapper({ ...renderProps, hasValue: hasValue || !!badge })
12200
12360
  },
12201
- /* @__PURE__ */ React102.createElement(React102.Fragment, null, /* @__PURE__ */ React102.createElement(
12361
+ /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement(
12202
12362
  AriaButton4,
12203
12363
  {
12204
12364
  onPress: () => {
@@ -12210,7 +12370,7 @@ var FilterTrigger = ({
12210
12370
  "px-4": !showClearButton
12211
12371
  })
12212
12372
  },
12213
- /* @__PURE__ */ React102.createElement("div", { className: "flex items-center gap-3 divide-x divide-grey-20" }, /* @__PURE__ */ React102.createElement("div", { className: "flex items-center gap-3" }, /* @__PURE__ */ React102.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ React102.createElement(InlineIcon, { icon }), /* @__PURE__ */ React102.createElement(Typography2.Default, null, labelText)), badge && /* @__PURE__ */ React102.createElement(Typography2, { color: "primary-default", className: "flex items-center" }, /* @__PURE__ */ React102.createElement(Badge, { dense: true, value: badge }))), hasValue && /* @__PURE__ */ React102.createElement("div", { className: "pl-3" }, /* @__PURE__ */ React102.createElement(
12373
+ /* @__PURE__ */ React103.createElement("div", { className: "flex items-center gap-3 divide-x divide-grey-20" }, /* @__PURE__ */ React103.createElement("div", { className: "flex items-center gap-3" }, /* @__PURE__ */ React103.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ React103.createElement(InlineIcon, { icon }), /* @__PURE__ */ React103.createElement(Typography2.Default, null, labelText)), badge && /* @__PURE__ */ React103.createElement(Typography2, { color: "primary-default", className: "flex items-center" }, /* @__PURE__ */ React103.createElement(Badge, { dense: true, value: badge }))), hasValue && /* @__PURE__ */ React103.createElement("div", { className: "pl-3" }, /* @__PURE__ */ React103.createElement(
12214
12374
  Typography2.Default,
12215
12375
  {
12216
12376
  className: clsx31("truncate", {
@@ -12221,10 +12381,10 @@ var FilterTrigger = ({
12221
12381
  color: error ? "danger-default" : "primary-default"
12222
12382
  },
12223
12383
  value,
12224
- isUsedInsideDatePicker && /* @__PURE__ */ React102.createElement(DateDisplay, { state: ariaDatePickerState }),
12225
- isUsedInsideDateRangePicker && /* @__PURE__ */ React102.createElement(DateDisplay, { state: ariaDateRangePickerState })
12384
+ isUsedInsideDatePicker && /* @__PURE__ */ React103.createElement(DateDisplay, { state: ariaDatePickerState }),
12385
+ isUsedInsideDateRangePicker && /* @__PURE__ */ React103.createElement(DateDisplay, { state: ariaDateRangePickerState })
12226
12386
  )))
12227
- ), showClearButton && /* @__PURE__ */ React102.createElement(
12387
+ ), showClearButton && /* @__PURE__ */ React103.createElement(
12228
12388
  FilterClearButton,
12229
12389
  {
12230
12390
  onClear: () => {
@@ -12241,11 +12401,11 @@ var isDateRangePickerState = (state) => {
12241
12401
  var DateDisplay = ({ state }) => {
12242
12402
  const primary = isDateRangePickerState(state) ? state.formatValue(DATE_FORMAT_OPTIONS.locale, DATE_FORMAT_OPTIONS.options)?.start : state.formatValue(DATE_FORMAT_OPTIONS.locale, DATE_FORMAT_OPTIONS.options);
12243
12403
  const secondary = isDateRangePickerState(state) ? state.formatValue(DATE_FORMAT_OPTIONS.locale, DATE_FORMAT_OPTIONS.options)?.end : void 0;
12244
- return /* @__PURE__ */ React102.createElement(Box.Flex, { gap: "2" }, /* @__PURE__ */ React102.createElement("span", null, primary), secondary && /* @__PURE__ */ React102.createElement(React102.Fragment, null, /* @__PURE__ */ React102.createElement("span", { "aria-hidden": true, className: "text-muted" }, "-"), /* @__PURE__ */ React102.createElement("span", null, secondary)));
12404
+ return /* @__PURE__ */ React103.createElement(Box.Flex, { gap: "2" }, /* @__PURE__ */ React103.createElement("span", null, primary), secondary && /* @__PURE__ */ React103.createElement(React103.Fragment, null, /* @__PURE__ */ React103.createElement("span", { "aria-hidden": true, className: "text-muted" }, "-"), /* @__PURE__ */ React103.createElement("span", null, secondary)));
12245
12405
  };
12246
12406
  var FilterClearButton = ({ onClear }) => (
12247
12407
  // using a native HTML <button> here instead of <Button slot={null} /> from react-aria because react-aria <DialogTrigger> doesn't support it as a child. If we used <Button slot={null}>, the popover would open simultaneously with the clear callback, which is unintended behavior. Interestingly, this issue doesn't occur in react-aria's <DatePicker>, but for consistency and to avoid conflicts here, we're sticking with a plain button.
12248
- /* @__PURE__ */ React102.createElement(
12408
+ /* @__PURE__ */ React103.createElement(
12249
12409
  "button",
12250
12410
  {
12251
12411
  "aria-label": "Clear filter",
@@ -12260,7 +12420,7 @@ var FilterClearButton = ({ onClear }) => (
12260
12420
  },
12261
12421
  className: "py-[10px] pl-[6px] pr-4 inline-flex items-center hover:bg-medium focus:bg-medium outline-0 outline-none rounded-r-full"
12262
12422
  },
12263
- /* @__PURE__ */ React102.createElement(InlineIcon, { icon: cross_default })
12423
+ /* @__PURE__ */ React103.createElement(InlineIcon, { icon: cross_default })
12264
12424
  )
12265
12425
  );
12266
12426
  var Filter = () => null;
@@ -12268,7 +12428,7 @@ FilterTrigger.displayName = "Filter.Trigger";
12268
12428
  Filter.Trigger = FilterTrigger;
12269
12429
 
12270
12430
  // src/molecules/LineClamp/LineClamp.tsx
12271
- import React103 from "react";
12431
+ import React104 from "react";
12272
12432
  var LineClamp2 = ({
12273
12433
  lines,
12274
12434
  children,
@@ -12277,10 +12437,10 @@ var LineClamp2 = ({
12277
12437
  collapseLabel,
12278
12438
  onClampedChange
12279
12439
  }) => {
12280
- const ref = React103.useRef(null);
12281
- const [clamped, setClamped] = React103.useState(true);
12282
- const [isClampingEnabled, setClampingEnabled] = React103.useState(false);
12283
- React103.useEffect(() => {
12440
+ const ref = React104.useRef(null);
12441
+ const [clamped, setClamped] = React104.useState(true);
12442
+ const [isClampingEnabled, setClampingEnabled] = React104.useState(false);
12443
+ React104.useEffect(() => {
12284
12444
  const el = ref.current;
12285
12445
  setClampingEnabled((el?.scrollHeight ?? 0) > (el?.clientHeight ?? 0));
12286
12446
  }, [ref.current]);
@@ -12288,25 +12448,25 @@ var LineClamp2 = ({
12288
12448
  setClamped(!clamped);
12289
12449
  onClampedChange?.(!clamped);
12290
12450
  };
12291
- return /* @__PURE__ */ React103.createElement("div", { className: "Aquarium-LineClamp" }, /* @__PURE__ */ React103.createElement(LineClamp, { ref, lines, clamped, wordBreak }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React103.createElement(Button2.Ghost, { dense: true, onClick: handleClampedChange }, clamped ? expandLabel : collapseLabel));
12451
+ return /* @__PURE__ */ React104.createElement("div", { className: "Aquarium-LineClamp" }, /* @__PURE__ */ React104.createElement(LineClamp, { ref, lines, clamped, wordBreak }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React104.createElement(Button2.Ghost, { dense: true, onClick: handleClampedChange }, clamped ? expandLabel : collapseLabel));
12292
12452
  };
12293
12453
 
12294
12454
  // src/molecules/List/useStaticInfiniteList.ts
12295
- import React104 from "react";
12455
+ import React105 from "react";
12296
12456
  var useStaticInfiniteList = ({
12297
12457
  items,
12298
12458
  pageSize,
12299
12459
  autoReset = true
12300
12460
  }) => {
12301
- const [currentPage, setCurrentPage] = React104.useState(1);
12461
+ const [currentPage, setCurrentPage] = React105.useState(1);
12302
12462
  const numberOfVisible = currentPage * pageSize;
12303
- const next = React104.useCallback(() => {
12463
+ const next = React105.useCallback(() => {
12304
12464
  setCurrentPage((page) => page + 1);
12305
12465
  }, [setCurrentPage]);
12306
- const reset = React104.useCallback(() => {
12466
+ const reset = React105.useCallback(() => {
12307
12467
  setCurrentPage(1);
12308
12468
  }, [setCurrentPage]);
12309
- React104.useEffect(() => {
12469
+ React105.useEffect(() => {
12310
12470
  if (autoReset) {
12311
12471
  setCurrentPage(1);
12312
12472
  }
@@ -12321,9 +12481,9 @@ var useStaticInfiniteList = ({
12321
12481
  };
12322
12482
 
12323
12483
  // src/molecules/ListItem/ListItem.tsx
12324
- import React105 from "react";
12484
+ import React106 from "react";
12325
12485
  var ListItem = ({ name, icon, active = false }) => {
12326
- return /* @__PURE__ */ React105.createElement(Box.Flex, { className: "Aquarium-ListItem", alignItems: "center" }, /* @__PURE__ */ React105.createElement(
12486
+ return /* @__PURE__ */ React106.createElement(Box.Flex, { className: "Aquarium-ListItem", alignItems: "center" }, /* @__PURE__ */ React106.createElement(
12327
12487
  Typography2,
12328
12488
  {
12329
12489
  variant: active ? "default-strong" : "default",
@@ -12331,13 +12491,13 @@ var ListItem = ({ name, icon, active = false }) => {
12331
12491
  htmlTag: "span",
12332
12492
  className: `px-4 py-2 rounded-full ${active ? "bg-medium" : "hover:bg-muted"}`
12333
12493
  },
12334
- /* @__PURE__ */ React105.createElement("img", { src: icon, alt: "", className: "inline mr-4", height: 28, width: 28 }),
12494
+ /* @__PURE__ */ React106.createElement("img", { src: icon, alt: "", className: "inline mr-4", height: 28, width: 28 }),
12335
12495
  name
12336
12496
  ));
12337
12497
  };
12338
12498
 
12339
12499
  // src/molecules/Modal/Modal.tsx
12340
- import React106 from "react";
12500
+ import React107 from "react";
12341
12501
  import { Dialog as AriaDialog4, Modal as AriaModal3, ModalOverlay as AriaModalOverlay3 } from "react-aria-components";
12342
12502
  import { clsx as clsx32 } from "clsx";
12343
12503
  import { castArray as castArray5, isEmpty as isEmpty2, omit as omit12 } from "lodash-es";
@@ -12359,7 +12519,7 @@ var Modal2 = ({
12359
12519
  const styles = modalStyles({ kind: "dialog", size });
12360
12520
  const hasTabs = isComponentType(children, ModalTabs);
12361
12521
  const hasActions = secondaryActions && !isEmpty2(secondaryActions) || primaryAction;
12362
- return /* @__PURE__ */ React106.createElement(
12522
+ return /* @__PURE__ */ React107.createElement(
12363
12523
  AriaModalOverlay3,
12364
12524
  {
12365
12525
  isOpen: open,
@@ -12368,43 +12528,43 @@ var Modal2 = ({
12368
12528
  isKeyboardDismissDisabled: !closeOnEsc,
12369
12529
  className: styles.overlay({ className: "Aquarium-Modal" })
12370
12530
  },
12371
- size !== "screen" && /* @__PURE__ */ React106.createElement(Modal.BackDrop, { className: styles.backdrop() }),
12372
- /* @__PURE__ */ React106.createElement(AriaModal3, { className: styles.dialog() }, /* @__PURE__ */ React106.createElement(AriaDialog4, { className: "flex flex-col grow overflow-y-auto outline-none" }, ({ close }) => /* @__PURE__ */ React106.createElement(React106.Fragment, null, /* @__PURE__ */ React106.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React106.createElement(Button2.Icon, { "aria-label": "Close", icon: cross_default, onClick: close })), headerImage !== void 0 && /* @__PURE__ */ React106.createElement(Modal.HeaderImage, { backgroundImage: headerImage }), /* @__PURE__ */ React106.createElement(
12531
+ size !== "screen" && /* @__PURE__ */ React107.createElement(Modal.BackDrop, { className: styles.backdrop() }),
12532
+ /* @__PURE__ */ React107.createElement(AriaModal3, { className: styles.dialog() }, /* @__PURE__ */ React107.createElement(AriaDialog4, { className: "flex flex-col grow overflow-y-auto outline-none" }, ({ close }) => /* @__PURE__ */ React107.createElement(React107.Fragment, null, /* @__PURE__ */ React107.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React107.createElement(Button2.Icon, { "aria-label": "Close", icon: cross_default, onClick: close })), headerImage !== void 0 && /* @__PURE__ */ React107.createElement(Modal.HeaderImage, { backgroundImage: headerImage }), /* @__PURE__ */ React107.createElement(
12373
12533
  Modal.Header,
12374
12534
  {
12375
12535
  kind: "dialog",
12376
12536
  size,
12377
12537
  className: clsx32({ "pb-3": isComponentType(children, ModalTabs) })
12378
12538
  },
12379
- /* @__PURE__ */ React106.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React106.createElement(ModalTitle, { kind: "dialog" }, title), subtitle && /* @__PURE__ */ React106.createElement(Modal.Subtitle, null, subtitle))
12380
- ), hasTabs ? React106.cloneElement(children, { className: "[&>div:first-child]:px-5 grow" }) : /* @__PURE__ */ React106.createElement(Modal.Body, { tabIndex: 0, noFooter: !hasActions, size }, children), hasActions && /* @__PURE__ */ React106.createElement(Modal.Footer, null, /* @__PURE__ */ React106.createElement(Modal.Actions, null, secondaryActions && castArray5(secondaryActions).filter(Boolean).map(({ text, ...action }) => /* @__PURE__ */ React106.createElement(Button2.Secondary, { key: text, ...action }, text)), primaryAction && /* @__PURE__ */ React106.createElement(Button2.Primary, { key: primaryAction.text, ...omit12(primaryAction, "text") }, primaryAction.text))))))
12539
+ /* @__PURE__ */ React107.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React107.createElement(ModalTitle, { kind: "dialog" }, title), subtitle && /* @__PURE__ */ React107.createElement(Modal.Subtitle, null, subtitle))
12540
+ ), hasTabs ? React107.cloneElement(children, { className: "[&>div:first-child]:px-5 grow" }) : /* @__PURE__ */ React107.createElement(Modal.Body, { tabIndex: 0, noFooter: !hasActions, size }, children), hasActions && /* @__PURE__ */ React107.createElement(Modal.Footer, null, /* @__PURE__ */ React107.createElement(Modal.Actions, null, secondaryActions && castArray5(secondaryActions).filter(Boolean).map(({ text, ...action }) => /* @__PURE__ */ React107.createElement(Button2.Secondary, { key: text, ...action }, text)), primaryAction && /* @__PURE__ */ React107.createElement(Button2.Primary, { key: primaryAction.text, ...omit12(primaryAction, "text") }, primaryAction.text))))))
12381
12541
  );
12382
12542
  };
12383
12543
  var ModalTabs = createTabsComponent(
12384
12544
  ModalTab,
12385
12545
  TabItem,
12386
12546
  "ModalTabs",
12387
- (children, selected, props) => /* @__PURE__ */ React106.createElement(Modal.Body, { maxHeight: props.maxHeight }, /* @__PURE__ */ React106.createElement(TabContainer, { className: "!py-4" }, children.find(
12547
+ (children, selected, props) => /* @__PURE__ */ React107.createElement(Modal.Body, { maxHeight: props.maxHeight }, /* @__PURE__ */ React107.createElement(TabContainer, { className: "!py-4" }, children.find(
12388
12548
  (node, index) => node?.props.value === selected || index === selected
12389
12549
  )))
12390
12550
  );
12391
12551
 
12392
12552
  // src/molecules/MultiInput/MultiInput.tsx
12393
- import React108, { useEffect as useEffect11, useRef as useRef13, useState as useState12 } from "react";
12553
+ import React109, { useEffect as useEffect11, useRef as useRef13, useState as useState11 } from "react";
12394
12554
  import { useId as useId13 } from "@react-aria/utils";
12395
12555
  import { castArray as castArray6, identity, omit as omit13 } from "lodash-es";
12396
12556
 
12397
12557
  // src/molecules/MultiInput/InputChip.tsx
12398
- import React107 from "react";
12558
+ import React108 from "react";
12399
12559
  import { clsx as clsx33 } from "clsx";
12400
- var InputChip = React107.forwardRef(
12560
+ var InputChip = React108.forwardRef(
12401
12561
  ({ invalid = false, disabled, readOnly, className, onClick: _onClick, children, ...props }, ref) => {
12402
12562
  const onClick = (e) => {
12403
12563
  if (!disabled && !readOnly) {
12404
12564
  _onClick?.(e);
12405
12565
  }
12406
12566
  };
12407
- return /* @__PURE__ */ React107.createElement(
12567
+ return /* @__PURE__ */ React108.createElement(
12408
12568
  "div",
12409
12569
  {
12410
12570
  className: clsx33(
@@ -12417,8 +12577,8 @@ var InputChip = React107.forwardRef(
12417
12577
  }
12418
12578
  )
12419
12579
  },
12420
- /* @__PURE__ */ React107.createElement("div", { className: "px-2 py-1" }, /* @__PURE__ */ React107.createElement(Typography2, { variant: "default", color: invalid ? "danger-default" : disabled ? "inactive" : "default" }, children)),
12421
- !readOnly && /* @__PURE__ */ React107.createElement(
12580
+ /* @__PURE__ */ React108.createElement("div", { className: "px-2 py-1" }, /* @__PURE__ */ React108.createElement(Typography2, { variant: "default", color: invalid ? "danger-default" : disabled ? "inactive" : "default" }, children)),
12581
+ !readOnly && /* @__PURE__ */ React108.createElement(
12422
12582
  "div",
12423
12583
  {
12424
12584
  ref,
@@ -12432,7 +12592,7 @@ var InputChip = React107.forwardRef(
12432
12592
  role: "button",
12433
12593
  "aria-label": `Remove ${String(children)}`
12434
12594
  },
12435
- !disabled && /* @__PURE__ */ React107.createElement(
12595
+ !disabled && /* @__PURE__ */ React108.createElement(
12436
12596
  Icon,
12437
12597
  {
12438
12598
  icon: smallCross_default,
@@ -12472,8 +12632,8 @@ var MultiInputBase = ({
12472
12632
  ...props
12473
12633
  }) => {
12474
12634
  const inputRef = useRef13(null);
12475
- const [items, setItems] = useState12(value ?? defaultValue ?? []);
12476
- const [hasFocus, setFocus] = useState12(false);
12635
+ const [items, setItems] = useState11(value ?? defaultValue ?? []);
12636
+ const [hasFocus, setFocus] = useState11(false);
12477
12637
  const keyCodes = [delimiter !== "enter" ? " " : null, delimiter !== "space" ? "Enter" : null].filter(identity);
12478
12638
  useEffect11(() => {
12479
12639
  const requiresUpdate = value !== void 0 || defaultValue === void 0;
@@ -12550,7 +12710,7 @@ var MultiInputBase = ({
12550
12710
  }
12551
12711
  onBlur?.();
12552
12712
  };
12553
- const renderChips = () => items.map((item, index) => /* @__PURE__ */ React108.createElement(
12713
+ const renderChips = () => items.map((item, index) => /* @__PURE__ */ React109.createElement(
12554
12714
  InputChip,
12555
12715
  {
12556
12716
  key: `${itemToString(item)}.${index}`,
@@ -12564,12 +12724,12 @@ var MultiInputBase = ({
12564
12724
  },
12565
12725
  itemToString(item)
12566
12726
  ));
12567
- return /* @__PURE__ */ React108.createElement("div", { className: "Aquarium-MultiInputBase" }, /* @__PURE__ */ React108.createElement(
12727
+ return /* @__PURE__ */ React109.createElement("div", { className: "Aquarium-MultiInputBase" }, /* @__PURE__ */ React109.createElement(
12568
12728
  Select.InputContainer,
12569
12729
  {
12570
12730
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
12571
12731
  },
12572
- /* @__PURE__ */ React108.createElement("div", { className: "grow inline-flex flex-row flex-wrap gap-y-2" }, inline && renderChips(), /* @__PURE__ */ React108.createElement(
12732
+ /* @__PURE__ */ React109.createElement("div", { className: "grow inline-flex flex-row flex-wrap gap-y-2" }, inline && renderChips(), /* @__PURE__ */ React109.createElement(
12573
12733
  Select.Input,
12574
12734
  {
12575
12735
  ref: inputRef,
@@ -12591,13 +12751,13 @@ var MultiInputBase = ({
12591
12751
  autoComplete: "off"
12592
12752
  }
12593
12753
  )),
12594
- endAdornment && /* @__PURE__ */ React108.createElement(InputAdornment, null, endAdornment)
12595
- ), !inline && /* @__PURE__ */ React108.createElement("div", { className: "flex flex-row flex-wrap gap-y-2 mt-2" }, renderChips()));
12754
+ endAdornment && /* @__PURE__ */ React109.createElement(InputAdornment, null, endAdornment)
12755
+ ), !inline && /* @__PURE__ */ React109.createElement("div", { className: "flex flex-row flex-wrap gap-y-2 mt-2" }, renderChips()));
12596
12756
  };
12597
- var BaseMultiInputSkeleton = () => /* @__PURE__ */ React108.createElement(Skeleton, { height: 38 });
12757
+ var BaseMultiInputSkeleton = () => /* @__PURE__ */ React109.createElement(Skeleton, { height: 38 });
12598
12758
  MultiInputBase.Skeleton = BaseMultiInputSkeleton;
12599
12759
  var MultiInput = (props) => {
12600
- const [value, setValue] = useState12(props.value ?? props.defaultValue ?? []);
12760
+ const [value, setValue] = useState11(props.value ?? props.defaultValue ?? []);
12601
12761
  useEffect11(() => {
12602
12762
  setValue(props.value ?? []);
12603
12763
  }, [JSON.stringify(props.value)]);
@@ -12607,7 +12767,7 @@ var MultiInput = (props) => {
12607
12767
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12608
12768
  const labelControlProps = getLabelControlProps(props);
12609
12769
  const baseProps = omit13(props, Object.keys(labelControlProps));
12610
- return /* @__PURE__ */ React108.createElement(
12770
+ return /* @__PURE__ */ React109.createElement(
12611
12771
  LabelControl,
12612
12772
  {
12613
12773
  id: `${id}-label`,
@@ -12618,7 +12778,7 @@ var MultiInput = (props) => {
12618
12778
  maxLength: props.maxLength,
12619
12779
  className: "Aquarium-MultiInput"
12620
12780
  },
12621
- /* @__PURE__ */ React108.createElement(
12781
+ /* @__PURE__ */ React109.createElement(
12622
12782
  MultiInputBase,
12623
12783
  {
12624
12784
  ...baseProps,
@@ -12635,12 +12795,12 @@ var MultiInput = (props) => {
12635
12795
  )
12636
12796
  );
12637
12797
  };
12638
- var MultiInputSkeleton = () => /* @__PURE__ */ React108.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React108.createElement(MultiInputBase.Skeleton, null));
12798
+ var MultiInputSkeleton = () => /* @__PURE__ */ React109.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React109.createElement(MultiInputBase.Skeleton, null));
12639
12799
  MultiInput.Skeleton = MultiInputSkeleton;
12640
12800
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
12641
12801
 
12642
12802
  // src/molecules/MultiSelect/MultiSelect.tsx
12643
- import React109, { useEffect as useEffect12, useRef as useRef14, useState as useState13 } from "react";
12803
+ import React110, { useEffect as useEffect12, useRef as useRef14, useState as useState12 } from "react";
12644
12804
  import { ariaHideOutside as ariaHideOutside3 } from "@react-aria/overlays";
12645
12805
  import { useId as useId14 } from "@react-aria/utils";
12646
12806
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
@@ -12674,8 +12834,8 @@ var MultiSelectBase = ({
12674
12834
  const targetRef = useRef14(null);
12675
12835
  const menuRef = useRef14(null);
12676
12836
  const inputRef = useRef14(null);
12677
- const [inputValue, setInputValue] = useState13("");
12678
- const [hasFocus, setFocus] = useState13(false);
12837
+ const [inputValue, setInputValue] = useState12("");
12838
+ const [hasFocus, setFocus] = useState12(false);
12679
12839
  const { selectedItems, addSelectedItem, removeSelectedItem, getDropdownProps, getSelectedItemProps } = useMultipleSelection(
12680
12840
  /*
12681
12841
  * For some reason useMultipleSelection does not accept
@@ -12758,7 +12918,7 @@ var MultiSelectBase = ({
12758
12918
  return ariaHideOutside3([inputRef.current, popoverRef.current]);
12759
12919
  }
12760
12920
  }, [isOpen, inputRef, popoverRef]);
12761
- const renderItem = (item, index) => /* @__PURE__ */ React109.createElement(
12921
+ const renderItem = (item, index) => /* @__PURE__ */ React110.createElement(
12762
12922
  Select.Item,
12763
12923
  {
12764
12924
  key: itemToString(item),
@@ -12768,9 +12928,9 @@ var MultiSelectBase = ({
12768
12928
  },
12769
12929
  renderOption(item)
12770
12930
  );
12771
- const renderGroup = (group) => group.options.length ? /* @__PURE__ */ React109.createElement(React109.Fragment, { key: group.label }, /* @__PURE__ */ React109.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, flattenedOptions.indexOf(opt)))) : null;
12931
+ const renderGroup = (group) => group.options.length ? /* @__PURE__ */ React110.createElement(React110.Fragment, { key: group.label }, /* @__PURE__ */ React110.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, flattenedOptions.indexOf(opt)))) : null;
12772
12932
  const renderChips = () => {
12773
- return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React109.createElement(
12933
+ return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React110.createElement(
12774
12934
  InputChip,
12775
12935
  {
12776
12936
  key: `${itemToString(selectedItem)}.chip`,
@@ -12792,13 +12952,13 @@ var MultiSelectBase = ({
12792
12952
  getDropdownProps({ ref: inputRef, disabled: disabled || readOnly, value: inputValue })
12793
12953
  );
12794
12954
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
12795
- return /* @__PURE__ */ React109.createElement("div", { className: "Aquarium-MultiSelectBase relative" }, /* @__PURE__ */ React109.createElement(
12955
+ return /* @__PURE__ */ React110.createElement("div", { className: "Aquarium-MultiSelectBase relative" }, /* @__PURE__ */ React110.createElement(
12796
12956
  Select.InputContainer,
12797
12957
  {
12798
12958
  ref: targetRef,
12799
12959
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
12800
12960
  },
12801
- /* @__PURE__ */ React109.createElement("div", { className: "grow inline-flex flex-row flex-wrap gap-2" }, !hideChips && inline && renderChips(), /* @__PURE__ */ React109.createElement(
12961
+ /* @__PURE__ */ React110.createElement("div", { className: "grow inline-flex flex-row flex-wrap gap-2" }, !hideChips && inline && renderChips(), /* @__PURE__ */ React110.createElement(
12802
12962
  Select.Input,
12803
12963
  {
12804
12964
  name,
@@ -12820,8 +12980,8 @@ var MultiSelectBase = ({
12820
12980
  }
12821
12981
  }
12822
12982
  )),
12823
- !readOnly && /* @__PURE__ */ React109.createElement(Select.Toggle, { hasFocus, isOpen, ...getToggleButtonProps({ disabled }) })
12824
- ), !hideChips && !inline && /* @__PURE__ */ React109.createElement("div", { className: "flex flex-row flex-wrap gap-2 mt-2" }, renderChips()), /* @__PURE__ */ React109.createElement(
12983
+ !readOnly && /* @__PURE__ */ React110.createElement(Select.Toggle, { hasFocus, isOpen, ...getToggleButtonProps({ disabled }) })
12984
+ ), !hideChips && !inline && /* @__PURE__ */ React110.createElement("div", { className: "flex flex-row flex-wrap gap-2 mt-2" }, renderChips()), /* @__PURE__ */ React110.createElement(
12825
12985
  Popover,
12826
12986
  {
12827
12987
  ref: popoverRef,
@@ -12831,12 +12991,12 @@ var MultiSelectBase = ({
12831
12991
  isNonModal: true,
12832
12992
  style: { width: targetRef.current?.offsetWidth }
12833
12993
  },
12834
- /* @__PURE__ */ React109.createElement(Select.Menu, { maxHeight, ...menuProps }, hasNoResults && /* @__PURE__ */ React109.createElement(Select.NoResults, null, emptyState), filteredOptions.map(
12994
+ /* @__PURE__ */ React110.createElement(Select.Menu, { maxHeight, ...menuProps }, hasNoResults && /* @__PURE__ */ React110.createElement(Select.NoResults, null, emptyState), filteredOptions.map(
12835
12995
  (option, index) => isOptionGroup(option) ? renderGroup(option) : renderItem(option, index)
12836
12996
  ))
12837
12997
  ));
12838
12998
  };
12839
- var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React109.createElement(Skeleton, { height: 38 });
12999
+ var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React110.createElement(Skeleton, { height: 38 });
12840
13000
  MultiSelectBase.Skeleton = MultiSelectBaseSkeleton;
12841
13001
  var MultiSelect = ({
12842
13002
  options,
@@ -12849,7 +13009,7 @@ var MultiSelect = ({
12849
13009
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12850
13010
  const labelControlProps = getLabelControlProps(props);
12851
13011
  const baseProps = omit14(props, Object.keys(labelControlProps));
12852
- return /* @__PURE__ */ React109.createElement(
13012
+ return /* @__PURE__ */ React110.createElement(
12853
13013
  LabelControl,
12854
13014
  {
12855
13015
  id: `${id}-label`,
@@ -12858,7 +13018,7 @@ var MultiSelect = ({
12858
13018
  ...labelControlProps,
12859
13019
  className: "Aquarium-MultiSelect"
12860
13020
  },
12861
- /* @__PURE__ */ React109.createElement(
13021
+ /* @__PURE__ */ React110.createElement(
12862
13022
  MultiSelectBase,
12863
13023
  {
12864
13024
  ...baseProps,
@@ -12872,16 +13032,16 @@ var MultiSelect = ({
12872
13032
  )
12873
13033
  );
12874
13034
  };
12875
- var MultiSelectSkeleton = () => /* @__PURE__ */ React109.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React109.createElement(MultiSelectBase.Skeleton, null));
13035
+ var MultiSelectSkeleton = () => /* @__PURE__ */ React110.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React110.createElement(MultiSelectBase.Skeleton, null));
12876
13036
  MultiSelect.Skeleton = MultiSelectSkeleton;
12877
13037
  MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
12878
13038
 
12879
13039
  // src/molecules/NativeSelect/NativeSelect.tsx
12880
- import React110 from "react";
13040
+ import React111 from "react";
12881
13041
  import { useId as useId15 } from "@react-aria/utils";
12882
13042
  import { clsx as clsx34 } from "clsx";
12883
13043
  import { omit as omit15, uniqueId } from "lodash-es";
12884
- var NativeSelectBase = React110.forwardRef(
13044
+ var NativeSelectBase = React111.forwardRef(
12885
13045
  ({ children, disabled = false, required = false, valid = true, readOnly = false, ...props }, ref) => {
12886
13046
  const placeholderValue = uniqueId("default_value_for_placeholder");
12887
13047
  const defaultValue = props.defaultValue ? props.defaultValue : props.placeholder ? placeholderValue : void 0;
@@ -12898,7 +13058,7 @@ var NativeSelectBase = React110.forwardRef(
12898
13058
  props.onBlur?.(event);
12899
13059
  }
12900
13060
  };
12901
- return /* @__PURE__ */ React110.createElement("span", { className: "Aquarium-NativeSelectBase relative block" }, !readOnly && /* @__PURE__ */ React110.createElement("span", { className: "absolute right-0 inset-y-0 mr-4 text-inactive flex ml-3 pointer-events-none typography-default-strong mt-4" }, /* @__PURE__ */ React110.createElement(Icon, { icon: caretDown_default, "data-testid": "icon-dropdown" })), /* @__PURE__ */ React110.createElement(
13061
+ return /* @__PURE__ */ React111.createElement("span", { className: "Aquarium-NativeSelectBase relative block" }, !readOnly && /* @__PURE__ */ React111.createElement("span", { className: "absolute right-0 inset-y-0 mr-4 text-inactive flex ml-3 pointer-events-none typography-default-strong mt-4" }, /* @__PURE__ */ React111.createElement(Icon, { icon: caretDown_default, "data-testid": "icon-dropdown" })), /* @__PURE__ */ React111.createElement(
12902
13062
  "select",
12903
13063
  {
12904
13064
  ref,
@@ -12918,13 +13078,13 @@ var NativeSelectBase = React110.forwardRef(
12918
13078
  props.className
12919
13079
  )
12920
13080
  },
12921
- props.placeholder && /* @__PURE__ */ React110.createElement("option", { value: placeholderValue, disabled: true }, props.placeholder),
13081
+ props.placeholder && /* @__PURE__ */ React111.createElement("option", { value: placeholderValue, disabled: true }, props.placeholder),
12922
13082
  children
12923
13083
  ));
12924
13084
  }
12925
13085
  );
12926
- NativeSelectBase.Skeleton = () => /* @__PURE__ */ React110.createElement(Skeleton, { height: 38 });
12927
- var NativeSelect = React110.forwardRef(
13086
+ NativeSelectBase.Skeleton = () => /* @__PURE__ */ React111.createElement(Skeleton, { height: 38 });
13087
+ var NativeSelect = React111.forwardRef(
12928
13088
  ({ readOnly, ...props }, ref) => {
12929
13089
  const defaultId = useId15();
12930
13090
  const id = props.id ?? defaultId;
@@ -12932,7 +13092,7 @@ var NativeSelect = React110.forwardRef(
12932
13092
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12933
13093
  const { "data-testid": dataTestId, ...labelControlProps } = getLabelControlProps(props);
12934
13094
  const baseProps = omit15(props, Object.keys(labelControlProps));
12935
- return /* @__PURE__ */ React110.createElement(
13095
+ return /* @__PURE__ */ React111.createElement(
12936
13096
  LabelControl,
12937
13097
  {
12938
13098
  id: `${id}-label`,
@@ -12941,7 +13101,7 @@ var NativeSelect = React110.forwardRef(
12941
13101
  ...labelControlProps,
12942
13102
  className: "Aquarium-NativeSelect"
12943
13103
  },
12944
- /* @__PURE__ */ React110.createElement(
13104
+ /* @__PURE__ */ React111.createElement(
12945
13105
  NativeSelectBase,
12946
13106
  {
12947
13107
  ref,
@@ -12960,21 +13120,21 @@ var NativeSelect = React110.forwardRef(
12960
13120
  }
12961
13121
  );
12962
13122
  NativeSelect.displayName = "NativeSelect";
12963
- var Option = React110.forwardRef(({ children, ...props }, ref) => {
12964
- return /* @__PURE__ */ React110.createElement("option", { ref, ...props }, children);
13123
+ var Option = React111.forwardRef(({ children, ...props }, ref) => {
13124
+ return /* @__PURE__ */ React111.createElement("option", { ref, ...props }, children);
12965
13125
  });
12966
13126
  Option.displayName = "Option";
12967
- var NativeSelectSkeleton = () => /* @__PURE__ */ React110.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React110.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React110.createElement("div", { style: { height: "1px" } }));
13127
+ var NativeSelectSkeleton = () => /* @__PURE__ */ React111.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React111.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React111.createElement("div", { style: { height: "1px" } }));
12968
13128
  NativeSelect.Skeleton = NativeSelectSkeleton;
12969
13129
  NativeSelect.Skeleton.displayName = "NativeSelect.Skeleton";
12970
13130
 
12971
13131
  // src/molecules/Navigation/Navigation.tsx
12972
- import React112 from "react";
13132
+ import React113 from "react";
12973
13133
  import { clsx as clsx35 } from "clsx";
12974
13134
  import { uniqueId as uniqueId2 } from "lodash-es";
12975
13135
 
12976
13136
  // src/atoms/Navigation/Navigation.tsx
12977
- import React111 from "react";
13137
+ import React112 from "react";
12978
13138
  import { tv as tv28 } from "tailwind-variants";
12979
13139
  var navigationClasses = tv28({
12980
13140
  slots: {
@@ -13013,35 +13173,35 @@ var Navigation = ({
13013
13173
  ...rest
13014
13174
  }) => {
13015
13175
  const { nav, list } = navigationClasses();
13016
- return /* @__PURE__ */ React111.createElement("nav", { className: nav(), "aria-label": ariaLabel }, /* @__PURE__ */ React111.createElement("ul", { ...rest, className: list({ className }), role: "menubar" }, children));
13176
+ return /* @__PURE__ */ React112.createElement("nav", { className: nav(), "aria-label": ariaLabel }, /* @__PURE__ */ React112.createElement("ul", { ...rest, className: list({ className }), role: "menubar" }, children));
13017
13177
  };
13018
13178
  var Header = ({ className, ...rest }) => {
13019
13179
  const { header } = navigationClasses();
13020
- return /* @__PURE__ */ React111.createElement("li", { ...rest, role: "presentation", className: header({ className }) });
13180
+ return /* @__PURE__ */ React112.createElement("li", { ...rest, role: "presentation", className: header({ className }) });
13021
13181
  };
13022
13182
  var Title2 = ({ className, ...props }) => {
13023
13183
  const { headerTitle } = navigationClasses();
13024
- return /* @__PURE__ */ React111.createElement(Typography, { variant: "small", className: headerTitle({ className }), ...props });
13184
+ return /* @__PURE__ */ React112.createElement(Typography, { variant: "small", className: headerTitle({ className }), ...props });
13025
13185
  };
13026
13186
  var Subtitle = ({ className, ...props }) => {
13027
13187
  const { headerSubtitle } = navigationClasses();
13028
- return /* @__PURE__ */ React111.createElement(Typography, { variant: "default-strong", className: headerSubtitle({ className }), ...props });
13188
+ return /* @__PURE__ */ React112.createElement(Typography, { variant: "default-strong", className: headerSubtitle({ className }), ...props });
13029
13189
  };
13030
13190
  var Footer = ({ className, ...rest }) => {
13031
13191
  const { footer } = navigationClasses();
13032
- return /* @__PURE__ */ React111.createElement("li", { ...rest, role: "presentation", className: footer({ className }) });
13192
+ return /* @__PURE__ */ React112.createElement("li", { ...rest, role: "presentation", className: footer({ className }) });
13033
13193
  };
13034
13194
  var Section2 = ({ title, className, ...rest }) => {
13035
13195
  const { sectionContainer, sectionTitle, sectionList } = navigationClasses();
13036
- return /* @__PURE__ */ React111.createElement("li", { role: "presentation", className: sectionContainer() }, title && /* @__PURE__ */ React111.createElement("div", { className: sectionTitle({ className }) }, title), /* @__PURE__ */ React111.createElement("ul", { ...rest, role: "group", className: sectionList({ className }) }));
13196
+ return /* @__PURE__ */ React112.createElement("li", { role: "presentation", className: sectionContainer() }, title && /* @__PURE__ */ React112.createElement("div", { className: sectionTitle({ className }) }, title), /* @__PURE__ */ React112.createElement("ul", { ...rest, role: "group", className: sectionList({ className }) }));
13037
13197
  };
13038
13198
  var Divider3 = ({ className, ...rest }) => {
13039
13199
  const { divider } = navigationClasses();
13040
- return /* @__PURE__ */ React111.createElement("li", { "aria-hidden": true, ...rest, className: divider({ className }) });
13200
+ return /* @__PURE__ */ React112.createElement("li", { "aria-hidden": true, ...rest, className: divider({ className }) });
13041
13201
  };
13042
13202
  var Item4 = ({ className, active = false, ...rest }) => {
13043
13203
  const { itemContainer, itemAnchor } = navigationClasses({ active });
13044
- return /* @__PURE__ */ React111.createElement("li", { role: "presentation", className: itemContainer() }, /* @__PURE__ */ React111.createElement("a", { ...rest, role: "menuitem", className: itemAnchor({ className }) }));
13204
+ return /* @__PURE__ */ React112.createElement("li", { role: "presentation", className: itemContainer() }, /* @__PURE__ */ React112.createElement("a", { ...rest, role: "menuitem", className: itemAnchor({ className }) }));
13045
13205
  };
13046
13206
  var Submenu = ({
13047
13207
  children,
@@ -13051,11 +13211,11 @@ var Submenu = ({
13051
13211
  ...rest
13052
13212
  }) => {
13053
13213
  const { submenuContainer, submenuAnchor, submenuList } = navigationClasses();
13054
- return /* @__PURE__ */ React111.createElement("li", { role: "presentation", className: submenuContainer() }, /* @__PURE__ */ React111.createElement("a", { role: "menuitem", "aria-haspopup": "true", href: "#", id, className: submenuAnchor({ className }), ...rest }, title), /* @__PURE__ */ React111.createElement("ul", { role: "menu", className: submenuList(), "aria-labelledby": id }, children));
13214
+ return /* @__PURE__ */ React112.createElement("li", { role: "presentation", className: submenuContainer() }, /* @__PURE__ */ React112.createElement("a", { role: "menuitem", "aria-haspopup": "true", href: "#", id, className: submenuAnchor({ className }), ...rest }, title), /* @__PURE__ */ React112.createElement("ul", { role: "menu", className: submenuList(), "aria-labelledby": id }, children));
13055
13215
  };
13056
13216
  var SubmenuItem = ({ className, active, ...rest }) => {
13057
13217
  const { submenuItem } = navigationClasses();
13058
- return /* @__PURE__ */ React111.createElement(Navigation.Item, { ...rest, active, className: submenuItem({ className }) });
13218
+ return /* @__PURE__ */ React112.createElement(Navigation.Item, { ...rest, active, className: submenuItem({ className }) });
13059
13219
  };
13060
13220
  Header.Title = Title2;
13061
13221
  Header.Subtitle = Subtitle;
@@ -13068,20 +13228,20 @@ Navigation.Submenu = Submenu;
13068
13228
  Navigation.Divider = Divider3;
13069
13229
 
13070
13230
  // src/molecules/Navigation/Navigation.tsx
13071
- var Navigation2 = ({ className, ...props }) => /* @__PURE__ */ React112.createElement(Navigation, { className: clsx35("Aquarium-Navigation", className), ...props });
13231
+ var Navigation2 = ({ className, ...props }) => /* @__PURE__ */ React113.createElement(Navigation, { className: clsx35("Aquarium-Navigation", className), ...props });
13072
13232
  var Item5 = ({
13073
13233
  children,
13074
13234
  icon,
13075
13235
  showNotification = false,
13076
13236
  ...rest
13077
- }) => /* @__PURE__ */ React112.createElement(Navigation.Item, { ...rest }, icon && showNotification && /* @__PURE__ */ React112.createElement(Badge.Notification, null, /* @__PURE__ */ React112.createElement(InlineIcon, { icon, width: "20px", height: "20px" })), icon && !showNotification && /* @__PURE__ */ React112.createElement(InlineIcon, { icon, width: "20px", height: "20px" }), children);
13237
+ }) => /* @__PURE__ */ React113.createElement(Navigation.Item, { ...rest }, icon && showNotification && /* @__PURE__ */ React113.createElement(Badge.Notification, null, /* @__PURE__ */ React113.createElement(InlineIcon, { icon, width: "20px", height: "20px" })), icon && !showNotification && /* @__PURE__ */ React113.createElement(InlineIcon, { icon, width: "20px", height: "20px" }), children);
13078
13238
  var Submenu2 = ({ children, title, icon, defaultOpen = false }) => {
13079
- const [open, setOpen] = React112.useState(defaultOpen);
13239
+ const [open, setOpen] = React113.useState(defaultOpen);
13080
13240
  const id = uniqueId2();
13081
- return /* @__PURE__ */ React112.createElement(
13241
+ return /* @__PURE__ */ React113.createElement(
13082
13242
  Navigation.Submenu,
13083
13243
  {
13084
- title: /* @__PURE__ */ React112.createElement(React112.Fragment, null, /* @__PURE__ */ React112.createElement(InlineIcon, { icon: open ? caretUpFilled_default : caretDownFilled_default, width: "12px", height: "12px", className: "mr-1" }), /* @__PURE__ */ React112.createElement(Box.Flex, { paddingX: "1", gap: "4" }, icon && /* @__PURE__ */ React112.createElement(InlineIcon, { icon, width: "20px", height: "20px" }), title)),
13244
+ title: /* @__PURE__ */ React113.createElement(React113.Fragment, null, /* @__PURE__ */ React113.createElement(InlineIcon, { icon: open ? caretUpFilled_default : caretDownFilled_default, width: "12px", height: "12px", className: "mr-1" }), /* @__PURE__ */ React113.createElement(Box.Flex, { paddingX: "1", gap: "4" }, icon && /* @__PURE__ */ React113.createElement(InlineIcon, { icon, width: "20px", height: "20px" }), title)),
13085
13245
  "aria-expanded": open,
13086
13246
  id,
13087
13247
  onClick: (e) => {
@@ -13089,7 +13249,7 @@ var Submenu2 = ({ children, title, icon, defaultOpen = false }) => {
13089
13249
  setOpen(!open);
13090
13250
  }
13091
13251
  },
13092
- open && /* @__PURE__ */ React112.createElement("ul", { role: "menu", className: "flex flex-col", "aria-labelledby": id }, children)
13252
+ open && /* @__PURE__ */ React113.createElement("ul", { role: "menu", className: "flex flex-col", "aria-labelledby": id }, children)
13093
13253
  );
13094
13254
  };
13095
13255
  Submenu2.Item = Navigation.Submenu.Item;
@@ -13101,11 +13261,11 @@ Navigation2.Section = Navigation.Section;
13101
13261
  Navigation2.Submenu = Submenu2;
13102
13262
 
13103
13263
  // src/molecules/PageHeader/PageHeader.tsx
13104
- import React114 from "react";
13264
+ import React115 from "react";
13105
13265
  import { castArray as castArray7 } from "lodash-es";
13106
13266
 
13107
13267
  // src/atoms/PageHeader/PageHeader.tsx
13108
- import React113 from "react";
13268
+ import React114 from "react";
13109
13269
  import { tv as tv29 } from "tailwind-variants";
13110
13270
  var pageHeaderStyles = tv29({
13111
13271
  slots: {
@@ -13117,10 +13277,10 @@ var pageHeaderStyles = tv29({
13117
13277
  }
13118
13278
  });
13119
13279
  var { base, container, titleContainer, chips, actions } = pageHeaderStyles();
13120
- var PageHeader = ({ children, className, ...rest }) => /* @__PURE__ */ React113.createElement("div", { className: base({ className }), ...rest }, children);
13121
- PageHeader.Container = ({ children, className, ...rest }) => /* @__PURE__ */ React113.createElement("div", { className: container({ className }), ...rest }, children);
13122
- PageHeader.TitleContainer = ({ children, className, ...rest }) => /* @__PURE__ */ React113.createElement("div", { className: titleContainer({ className }), ...rest }, children);
13123
- PageHeader.Title = ({ isSubHeader = false, children, ...rest }) => /* @__PURE__ */ React113.createElement(
13280
+ var PageHeader = ({ children, className, ...rest }) => /* @__PURE__ */ React114.createElement("div", { className: base({ className }), ...rest }, children);
13281
+ PageHeader.Container = ({ children, className, ...rest }) => /* @__PURE__ */ React114.createElement("div", { className: container({ className }), ...rest }, children);
13282
+ PageHeader.TitleContainer = ({ children, className, ...rest }) => /* @__PURE__ */ React114.createElement("div", { className: titleContainer({ className }), ...rest }, children);
13283
+ PageHeader.Title = ({ isSubHeader = false, children, ...rest }) => /* @__PURE__ */ React114.createElement(
13124
13284
  Typography2,
13125
13285
  {
13126
13286
  ...rest,
@@ -13130,9 +13290,9 @@ PageHeader.Title = ({ isSubHeader = false, children, ...rest }) => /* @__PURE__
13130
13290
  },
13131
13291
  children
13132
13292
  );
13133
- PageHeader.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React113.createElement(Typography2.Default, { ...rest, color: "default" }, children);
13134
- PageHeader.Chips = ({ children, className, ...rest }) => /* @__PURE__ */ React113.createElement("div", { className: chips({ className }), ...rest }, children);
13135
- PageHeader.Actions = ({ children, className, ...rest }) => /* @__PURE__ */ React113.createElement("div", { className: actions({ className }), ...rest }, children);
13293
+ PageHeader.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React114.createElement(Typography2.Default, { ...rest, color: "default" }, children);
13294
+ PageHeader.Chips = ({ children, className, ...rest }) => /* @__PURE__ */ React114.createElement("div", { className: chips({ className }), ...rest }, children);
13295
+ PageHeader.Actions = ({ children, className, ...rest }) => /* @__PURE__ */ React114.createElement("div", { className: actions({ className }), ...rest }, children);
13136
13296
 
13137
13297
  // src/molecules/PageHeader/PageHeader.tsx
13138
13298
  var CommonPageHeader = ({
@@ -13157,20 +13317,20 @@ var CommonPageHeader = ({
13157
13317
  "Limit the combined `primaryAction` and `secondaryActions` to 2 actions. Use the `menu` prop for additional actions."
13158
13318
  );
13159
13319
  }
13160
- return /* @__PURE__ */ React114.createElement(PageHeader, { className: "Aquarium-PageHeader" }, /* @__PURE__ */ React114.createElement(PageHeader.Container, null, breadcrumbs && /* @__PURE__ */ React114.createElement(Breadcrumbs, null, breadcrumbs), /* @__PURE__ */ React114.createElement(Spacing, { row: true, gap: "4" }, image && /* @__PURE__ */ React114.createElement("img", { src: image, alt: imageAlt ?? "", className: "size-[48px]" }), /* @__PURE__ */ React114.createElement(PageHeader.TitleContainer, null, /* @__PURE__ */ React114.createElement(PageHeader.Title, { isSubHeader }, title), chips2.length > 0 && /* @__PURE__ */ React114.createElement(PageHeader.Chips, null, chips2.map((chip) => /* @__PURE__ */ React114.createElement(Chip2, { key: chip, dense: true, text: chip }))), subtitle && /* @__PURE__ */ React114.createElement(PageHeader.Subtitle, null, subtitle)))), (secondaryActions ?? primaryAction ?? secondaryAction ?? menu) && /* @__PURE__ */ React114.createElement(PageHeader.Actions, null, menu && /* @__PURE__ */ React114.createElement(Box.Flex, { alignItems: "center" }, /* @__PURE__ */ React114.createElement(
13320
+ return /* @__PURE__ */ React115.createElement(PageHeader, { className: "Aquarium-PageHeader" }, /* @__PURE__ */ React115.createElement(PageHeader.Container, null, breadcrumbs && /* @__PURE__ */ React115.createElement(Breadcrumbs, null, breadcrumbs), /* @__PURE__ */ React115.createElement(Spacing, { row: true, gap: "4" }, image && /* @__PURE__ */ React115.createElement("img", { src: image, alt: imageAlt ?? "", className: "size-[48px]" }), /* @__PURE__ */ React115.createElement(PageHeader.TitleContainer, null, /* @__PURE__ */ React115.createElement(PageHeader.Title, { isSubHeader }, title), chips2.length > 0 && /* @__PURE__ */ React115.createElement(PageHeader.Chips, null, chips2.map((chip) => /* @__PURE__ */ React115.createElement(Chip2, { key: chip, dense: true, text: chip }))), subtitle && /* @__PURE__ */ React115.createElement(PageHeader.Subtitle, null, subtitle)))), (secondaryActions ?? primaryAction ?? secondaryAction ?? menu) && /* @__PURE__ */ React115.createElement(PageHeader.Actions, null, menu && /* @__PURE__ */ React115.createElement(Box.Flex, { alignItems: "center" }, /* @__PURE__ */ React115.createElement(
13161
13321
  DropdownMenu2,
13162
13322
  {
13163
13323
  placement: defaultContextualMenuPlacement,
13164
13324
  onAction: (action) => onAction(action),
13165
13325
  onOpenChange: onMenuOpenChange
13166
13326
  },
13167
- /* @__PURE__ */ React114.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React114.createElement(Button2.Icon, { "aria-label": menuAriaLabel, icon: more_default })),
13327
+ /* @__PURE__ */ React115.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React115.createElement(Button2.Icon, { "aria-label": menuAriaLabel, icon: more_default })),
13168
13328
  menu
13169
13329
  )), secondaryActions && castArray7(secondaryActions).filter(Boolean).map((secondaryAction2) => renderAction({ kind: "secondary", action: secondaryAction2 })), primaryAction && renderAction({ kind: "primary", action: primaryAction })));
13170
13330
  };
13171
- var PageHeader2 = (props) => /* @__PURE__ */ React114.createElement(CommonPageHeader, { ...props });
13331
+ var PageHeader2 = (props) => /* @__PURE__ */ React115.createElement(CommonPageHeader, { ...props });
13172
13332
  PageHeader2.displayName = "PageHeader";
13173
- var SubHeader = (props) => /* @__PURE__ */ React114.createElement(CommonPageHeader, { ...props, isSubHeader: true });
13333
+ var SubHeader = (props) => /* @__PURE__ */ React115.createElement(CommonPageHeader, { ...props, isSubHeader: true });
13174
13334
  PageHeader2.SubHeader = SubHeader;
13175
13335
  PageHeader2.SubHeader.displayName = "PageHeader.SubHeader";
13176
13336
 
@@ -13186,17 +13346,17 @@ var usePopoverContext = () => {
13186
13346
  };
13187
13347
 
13188
13348
  // src/molecules/PopoverDialog/PopoverDialog.tsx
13189
- import React116, { createContext as createContext8 } from "react";
13349
+ import React117, { createContext as createContext8 } from "react";
13190
13350
  import { noop as noop3, omit as omit16 } from "lodash-es";
13191
13351
 
13192
13352
  // src/atoms/PopoverDialog/PopoverDialog.tsx
13193
- import React115 from "react";
13353
+ import React116 from "react";
13194
13354
  import { clsx as clsx36 } from "clsx";
13195
- var Header2 = ({ children, className, ...rest }) => /* @__PURE__ */ React115.createElement("div", { ...rest, className: clsx36("p-5 gap-3 flex items-center", className) }, children);
13196
- var Title3 = ({ children, className, ...rest }) => /* @__PURE__ */ React115.createElement(Typography, { ...rest, htmlTag: "h1", variant: "default-strong" }, children);
13197
- var Body = ({ children, className, ...rest }) => /* @__PURE__ */ React115.createElement(Typography, { ...rest, htmlTag: "div", variant: "small", className: clsx36("px-5 overflow-y-auto", className) }, children);
13198
- var Footer2 = ({ children, className, ...rest }) => /* @__PURE__ */ React115.createElement("div", { ...rest, className: clsx36("p-5", className) }, children);
13199
- var Actions3 = ({ children, className, ...rest }) => /* @__PURE__ */ React115.createElement("div", { ...rest, className: clsx36("flex gap-4", className) }, children);
13355
+ var Header2 = ({ children, className, ...rest }) => /* @__PURE__ */ React116.createElement("div", { ...rest, className: clsx36("p-5 gap-3 flex items-center", className) }, children);
13356
+ var Title3 = ({ children, className, ...rest }) => /* @__PURE__ */ React116.createElement(Typography, { ...rest, htmlTag: "h1", variant: "default-strong" }, children);
13357
+ var Body = ({ children, className, ...rest }) => /* @__PURE__ */ React116.createElement(Typography, { ...rest, htmlTag: "div", variant: "small", className: clsx36("px-5 overflow-y-auto", className) }, children);
13358
+ var Footer2 = ({ children, className, ...rest }) => /* @__PURE__ */ React116.createElement("div", { ...rest, className: clsx36("p-5", className) }, children);
13359
+ var Actions3 = ({ children, className, ...rest }) => /* @__PURE__ */ React116.createElement("div", { ...rest, className: clsx36("flex gap-4", className) }, children);
13200
13360
  var PopoverDialog = {
13201
13361
  Header: Header2,
13202
13362
  Title: Title3,
@@ -13211,12 +13371,12 @@ var PopoverDialogPropsContext = createContext8({
13211
13371
  primaryAction: { text: "", onClick: noop3 }
13212
13372
  });
13213
13373
  var PopoverDialog2 = ({ placement, open, children, ...props }) => {
13214
- return /* @__PURE__ */ React116.createElement(Popover2, { placement }, /* @__PURE__ */ React116.createElement(PopoverDialogPropsContext.Provider, { value: props }, children));
13374
+ return /* @__PURE__ */ React117.createElement(Popover2, { placement }, /* @__PURE__ */ React117.createElement(PopoverDialogPropsContext.Provider, { value: props }, children));
13215
13375
  };
13216
13376
  PopoverDialog2.Trigger = Popover2.Trigger;
13217
13377
  var Prompt = ({ children }) => {
13218
- const { title, primaryAction, secondaryAction } = React116.useContext(PopoverDialogPropsContext);
13219
- return /* @__PURE__ */ React116.createElement(Popover2.Panel, { className: "Aquarium-PopoverDialog max-w-[300px]" }, /* @__PURE__ */ React116.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React116.createElement(PopoverDialog.Title, null, title)), /* @__PURE__ */ React116.createElement(PopoverDialog.Body, null, children), /* @__PURE__ */ React116.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React116.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React116.createElement(Popover2.CloseToggle, null, /* @__PURE__ */ React116.createElement(Button2, { key: secondaryAction.text, kind: "secondary", dense: true, ...omit16(secondaryAction, "text") }, secondaryAction.text)), /* @__PURE__ */ React116.createElement(Popover2.CloseToggle, null, /* @__PURE__ */ React116.createElement(Button2, { key: primaryAction.text, kind: "ghost", dense: true, ...omit16(primaryAction, "text") }, primaryAction.text)))));
13378
+ const { title, primaryAction, secondaryAction } = React117.useContext(PopoverDialogPropsContext);
13379
+ return /* @__PURE__ */ React117.createElement(Popover2.Panel, { className: "Aquarium-PopoverDialog max-w-[300px]" }, /* @__PURE__ */ React117.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React117.createElement(PopoverDialog.Title, null, title)), /* @__PURE__ */ React117.createElement(PopoverDialog.Body, null, children), /* @__PURE__ */ React117.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React117.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React117.createElement(Popover2.CloseToggle, null, /* @__PURE__ */ React117.createElement(Button2, { key: secondaryAction.text, kind: "secondary", dense: true, ...omit16(secondaryAction, "text") }, secondaryAction.text)), /* @__PURE__ */ React117.createElement(Popover2.CloseToggle, null, /* @__PURE__ */ React117.createElement(Button2, { key: primaryAction.text, kind: "ghost", dense: true, ...omit16(primaryAction, "text") }, primaryAction.text)))));
13220
13380
  };
13221
13381
  Prompt.displayName = "PopoverDialog.Prompt";
13222
13382
  PopoverDialog2.Prompt = Prompt;
@@ -13226,10 +13386,10 @@ import { createPortal } from "react-dom";
13226
13386
  var Portal = ({ children, to }) => createPortal(children, to);
13227
13387
 
13228
13388
  // src/molecules/ProgressBar/ProgressBar.tsx
13229
- import React118 from "react";
13389
+ import React119 from "react";
13230
13390
 
13231
13391
  // src/atoms/ProgressBar/ProgressBar.tsx
13232
- import React117 from "react";
13392
+ import React118 from "react";
13233
13393
  import { clamp as clamp3 } from "lodash-es";
13234
13394
  import { tv as tv30 } from "tailwind-variants";
13235
13395
  var progressBarClasses = tv30({
@@ -13249,10 +13409,10 @@ var progressBarIndicatorClasses = tv30({
13249
13409
  var progressBarLabelsClasses = tv30({
13250
13410
  base: "flex flex-row"
13251
13411
  });
13252
- var ProgressBar = ({ children, className, ...rest }) => /* @__PURE__ */ React117.createElement("div", { ...rest, className: progressBarClasses({ className }) }, children);
13412
+ var ProgressBar = ({ children, className, ...rest }) => /* @__PURE__ */ React118.createElement("div", { ...rest, className: progressBarClasses({ className }) }, children);
13253
13413
  ProgressBar.Indicator = ({ min, max, value, "aria-label": ariaLabel, status, className, ...rest }) => {
13254
13414
  const completedPercentage = clamp3((value - min) / (max - min) * 100, 0, 100);
13255
- return /* @__PURE__ */ React117.createElement(
13415
+ return /* @__PURE__ */ React118.createElement(
13256
13416
  "div",
13257
13417
  {
13258
13418
  ...rest,
@@ -13266,7 +13426,7 @@ ProgressBar.Indicator = ({ min, max, value, "aria-label": ariaLabel, status, cla
13266
13426
  }
13267
13427
  );
13268
13428
  };
13269
- ProgressBar.Labels = ({ children, startLabel, endLabel, className, ...rest }) => /* @__PURE__ */ React117.createElement("div", { className: progressBarLabelsClasses({ className }) }, /* @__PURE__ */ React117.createElement("span", { ...rest, className: "grow text-default typography-small" }, startLabel), /* @__PURE__ */ React117.createElement("span", { ...rest, className: "grow text-default typography-small text-right" }, endLabel));
13429
+ ProgressBar.Labels = ({ children, startLabel, endLabel, className, ...rest }) => /* @__PURE__ */ React118.createElement("div", { className: progressBarLabelsClasses({ className }) }, /* @__PURE__ */ React118.createElement("span", { ...rest, className: "grow text-default typography-small" }, startLabel), /* @__PURE__ */ React118.createElement("span", { ...rest, className: "grow text-default typography-small text-right" }, endLabel));
13270
13430
 
13271
13431
  // src/molecules/ProgressBar/ProgressBar.tsx
13272
13432
  var ProgressBar2 = (props) => {
@@ -13281,7 +13441,7 @@ var ProgressBar2 = (props) => {
13281
13441
  if (min > max) {
13282
13442
  throw new Error("`min` value provided to `ProgressBar` is greater than `max` value.");
13283
13443
  }
13284
- const progress = /* @__PURE__ */ React118.createElement(ProgressBar, null, /* @__PURE__ */ React118.createElement(
13444
+ const progress = /* @__PURE__ */ React119.createElement(ProgressBar, null, /* @__PURE__ */ React119.createElement(
13285
13445
  ProgressBar.Indicator,
13286
13446
  {
13287
13447
  status: value === max ? completedStatus : progresStatus,
@@ -13294,18 +13454,18 @@ var ProgressBar2 = (props) => {
13294
13454
  if (props.dense) {
13295
13455
  return progress;
13296
13456
  }
13297
- return /* @__PURE__ */ React118.createElement("div", { className: "Aquarium-ProgressBar" }, progress, /* @__PURE__ */ React118.createElement(ProgressBar.Labels, { className: "py-2", startLabel: props.startLabel, endLabel: props.endLabel }));
13457
+ return /* @__PURE__ */ React119.createElement("div", { className: "Aquarium-ProgressBar" }, progress, /* @__PURE__ */ React119.createElement(ProgressBar.Labels, { className: "py-2", startLabel: props.startLabel, endLabel: props.endLabel }));
13298
13458
  };
13299
- var ProgressBarSkeleton = () => /* @__PURE__ */ React118.createElement(Skeleton, { height: 4, display: "block" });
13459
+ var ProgressBarSkeleton = () => /* @__PURE__ */ React119.createElement(Skeleton, { height: 4, display: "block" });
13300
13460
  ProgressBar2.Skeleton = ProgressBarSkeleton;
13301
13461
  ProgressBar2.Skeleton.displayName = "ProgressBar.Skeleton";
13302
13462
 
13303
13463
  // src/molecules/RadioButton/RadioButton.tsx
13304
- import React119 from "react";
13305
- var RadioButton2 = React119.forwardRef(
13464
+ import React120 from "react";
13465
+ var RadioButton2 = React120.forwardRef(
13306
13466
  ({ name, id, readOnly = false, disabled = false, caption, children, "aria-label": ariaLabel, ...props }, ref) => {
13307
13467
  const isChecked = props.checked ?? props.defaultChecked;
13308
- return !readOnly || isChecked ? /* @__PURE__ */ React119.createElement(
13468
+ return !readOnly || isChecked ? /* @__PURE__ */ React120.createElement(
13309
13469
  ControlLabel,
13310
13470
  {
13311
13471
  htmlFor: id,
@@ -13317,21 +13477,21 @@ var RadioButton2 = React119.forwardRef(
13317
13477
  style: { gap: "0 8px" },
13318
13478
  className: "Aquarium-RadioButton"
13319
13479
  },
13320
- !readOnly && /* @__PURE__ */ React119.createElement(RadioButton, { id, ref, name, ...props, readOnly, disabled })
13480
+ !readOnly && /* @__PURE__ */ React120.createElement(RadioButton, { id, ref, name, ...props, readOnly, disabled })
13321
13481
  ) : null;
13322
13482
  }
13323
13483
  );
13324
13484
  RadioButton2.displayName = "RadioButton";
13325
- var RadioButtonSkeleton = () => /* @__PURE__ */ React119.createElement("div", { className: "flex gap-3" }, /* @__PURE__ */ React119.createElement(Skeleton, { height: 20, width: 20 }), /* @__PURE__ */ React119.createElement(Skeleton, { height: 20, width: 150 }));
13485
+ var RadioButtonSkeleton = () => /* @__PURE__ */ React120.createElement("div", { className: "flex gap-3" }, /* @__PURE__ */ React120.createElement(Skeleton, { height: 20, width: 20 }), /* @__PURE__ */ React120.createElement(Skeleton, { height: 20, width: 150 }));
13326
13486
  RadioButton2.Skeleton = RadioButtonSkeleton;
13327
13487
  RadioButton2.Skeleton.displayName = "RadioButton.Skeleton";
13328
13488
 
13329
13489
  // src/molecules/RadioButtonGroup/RadioButtonGroup.tsx
13330
- import React120 from "react";
13490
+ import React121 from "react";
13331
13491
  import { useId as useId16 } from "@react-aria/utils";
13332
13492
  import { clsx as clsx37 } from "clsx";
13333
13493
  var isRadioButton = (c) => {
13334
- return React120.isValidElement(c) && c.type === RadioButton2;
13494
+ return React121.isValidElement(c) && c.type === RadioButton2;
13335
13495
  };
13336
13496
  var RadioButtonGroup = ({
13337
13497
  name,
@@ -13343,7 +13503,7 @@ var RadioButtonGroup = ({
13343
13503
  children,
13344
13504
  ...props
13345
13505
  }) => {
13346
- const [value, setValue] = React120.useState(_value ?? defaultValue ?? "");
13506
+ const [value, setValue] = React121.useState(_value ?? defaultValue ?? "");
13347
13507
  const errorMessageId = useId16();
13348
13508
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13349
13509
  const labelControlProps = getLabelControlProps(props);
@@ -13354,13 +13514,13 @@ var RadioButtonGroup = ({
13354
13514
  setValue(e.target.value);
13355
13515
  onChange?.(e.target.value);
13356
13516
  };
13357
- const content = React120.Children.map(children, (c) => {
13517
+ const content = React121.Children.map(children, (c) => {
13358
13518
  if (!isRadioButton(c)) {
13359
13519
  return null;
13360
13520
  }
13361
13521
  const defaultChecked = defaultValue === void 0 ? void 0 : c.props.value === defaultValue;
13362
13522
  const checked = value === void 0 ? void 0 : c.props.value === value;
13363
- return React120.cloneElement(c, {
13523
+ return React121.cloneElement(c, {
13364
13524
  name,
13365
13525
  defaultChecked: c.props.defaultChecked ?? defaultChecked,
13366
13526
  checked: c.props.checked ?? checked,
@@ -13369,11 +13529,11 @@ var RadioButtonGroup = ({
13369
13529
  readOnly
13370
13530
  });
13371
13531
  });
13372
- return /* @__PURE__ */ React120.createElement(LabelControl, { fieldset: true, ...labelControlProps, ...errorProps, className: "Aquarium-RadioButtonGroup" }, cols && /* @__PURE__ */ React120.createElement(InputGroup, { cols }, content), !cols && /* @__PURE__ */ React120.createElement(Box.Flex, { flexDirection: "row", alignItems: "flex-start", colGap: "8", rowGap: "3", flexWrap: "wrap" }, content));
13532
+ return /* @__PURE__ */ React121.createElement(LabelControl, { fieldset: true, ...labelControlProps, ...errorProps, className: "Aquarium-RadioButtonGroup" }, cols && /* @__PURE__ */ React121.createElement(InputGroup, { cols }, content), !cols && /* @__PURE__ */ React121.createElement(Box.Flex, { flexDirection: "row", alignItems: "flex-start", colGap: "8", rowGap: "3", flexWrap: "wrap" }, content));
13373
13533
  };
13374
13534
  var RadioButtonGroupSkeleton = ({ cols, options = 2 }) => {
13375
13535
  const isRow = !cols || parseInt(cols, 10) > 1;
13376
- return /* @__PURE__ */ React120.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React120.createElement(
13536
+ return /* @__PURE__ */ React121.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React121.createElement(
13377
13537
  "div",
13378
13538
  {
13379
13539
  className: clsx37("flex flex-wrap", {
@@ -13381,14 +13541,14 @@ var RadioButtonGroupSkeleton = ({ cols, options = 2 }) => {
13381
13541
  "flex-col gap-2": !isRow
13382
13542
  })
13383
13543
  },
13384
- Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React120.createElement(RadioButton2.Skeleton, { key }))
13544
+ Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React121.createElement(RadioButton2.Skeleton, { key }))
13385
13545
  ));
13386
13546
  };
13387
13547
  RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
13388
13548
  RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
13389
13549
 
13390
13550
  // src/molecules/Section/Section.tsx
13391
- import React125, { useRef as useRef15 } from "react";
13551
+ import React126, { useRef as useRef15 } from "react";
13392
13552
  import { useButton as useButton4 } from "@react-aria/button";
13393
13553
  import { useId as useId17 } from "@react-aria/utils";
13394
13554
  import { animated as animated6, useSpring as useSpring5 } from "@react-spring/web";
@@ -13396,10 +13556,10 @@ import { clsx as clsx38 } from "clsx";
13396
13556
  import { castArray as castArray8, isUndefined as isUndefined8 } from "lodash-es";
13397
13557
 
13398
13558
  // src/molecules/Switch/Switch.tsx
13399
- import React122 from "react";
13559
+ import React123 from "react";
13400
13560
 
13401
13561
  // src/atoms/Switch/Switch.tsx
13402
- import React121 from "react";
13562
+ import React122 from "react";
13403
13563
  import { tv as tv31 } from "tailwind-variants";
13404
13564
  var switchStyles = tv31({
13405
13565
  slots: {
@@ -13420,10 +13580,10 @@ var switchStyles = tv31({
13420
13580
  }
13421
13581
  }
13422
13582
  });
13423
- var Switch = React121.forwardRef(
13583
+ var Switch = React122.forwardRef(
13424
13584
  ({ id, children, name, disabled = false, readOnly = false, ...props }, ref) => {
13425
13585
  const { wrapper, input, thumb } = switchStyles({ disabled });
13426
- return /* @__PURE__ */ React121.createElement("span", { className: wrapper() }, /* @__PURE__ */ React121.createElement(
13586
+ return /* @__PURE__ */ React122.createElement("span", { className: wrapper() }, /* @__PURE__ */ React122.createElement(
13427
13587
  "input",
13428
13588
  {
13429
13589
  id,
@@ -13435,12 +13595,12 @@ var Switch = React121.forwardRef(
13435
13595
  readOnly,
13436
13596
  disabled
13437
13597
  }
13438
- ), /* @__PURE__ */ React121.createElement("span", { className: thumb() }, disabled && /* @__PURE__ */ React121.createElement(Icon, { icon: ban_default, width: "10px", height: "10px" })));
13598
+ ), /* @__PURE__ */ React122.createElement("span", { className: thumb() }, disabled && /* @__PURE__ */ React122.createElement(Icon, { icon: ban_default, width: "10px", height: "10px" })));
13439
13599
  }
13440
13600
  );
13441
13601
 
13442
13602
  // src/molecules/Switch/Switch.tsx
13443
- var Switch2 = React122.forwardRef(
13603
+ var Switch2 = React123.forwardRef(
13444
13604
  ({
13445
13605
  id,
13446
13606
  name,
@@ -13453,7 +13613,7 @@ var Switch2 = React122.forwardRef(
13453
13613
  ...props
13454
13614
  }, ref) => {
13455
13615
  const isChecked = props.checked ?? props.defaultChecked;
13456
- return !readOnly || isChecked ? /* @__PURE__ */ React122.createElement(
13616
+ return !readOnly || isChecked ? /* @__PURE__ */ React123.createElement(
13457
13617
  ControlLabel,
13458
13618
  {
13459
13619
  htmlFor: id,
@@ -13466,21 +13626,21 @@ var Switch2 = React122.forwardRef(
13466
13626
  labelPlacement,
13467
13627
  className: "Aquarium-Switch"
13468
13628
  },
13469
- !readOnly && /* @__PURE__ */ React122.createElement(Switch, { id, ref, name, ...props, readOnly, disabled })
13629
+ !readOnly && /* @__PURE__ */ React123.createElement(Switch, { id, ref, name, ...props, readOnly, disabled })
13470
13630
  ) : null;
13471
13631
  }
13472
13632
  );
13473
13633
  Switch2.displayName = "Switch";
13474
- var SwitchSkeleton = () => /* @__PURE__ */ React122.createElement("div", { className: "flex gap-3" }, /* @__PURE__ */ React122.createElement(Skeleton, { height: 20, width: 35 }), /* @__PURE__ */ React122.createElement(Skeleton, { height: 20, width: 150 }));
13634
+ var SwitchSkeleton = () => /* @__PURE__ */ React123.createElement("div", { className: "flex gap-3" }, /* @__PURE__ */ React123.createElement(Skeleton, { height: 20, width: 35 }), /* @__PURE__ */ React123.createElement(Skeleton, { height: 20, width: 150 }));
13475
13635
  Switch2.Skeleton = SwitchSkeleton;
13476
13636
  Switch2.Skeleton.displayName = "Switch.Skeleton ";
13477
13637
 
13478
13638
  // src/molecules/TagLabel/TagLabel.tsx
13479
- import React123 from "react";
13480
- var TagLabel = ({ title, dense = false, variant, ...rest }) => /* @__PURE__ */ React123.createElement(InverseChip, { text: title, dense, status: variant || "primary", ...rest });
13639
+ import React124 from "react";
13640
+ var TagLabel = ({ title, dense = false, variant, ...rest }) => /* @__PURE__ */ React124.createElement(InverseChip, { text: title, dense, status: variant || "primary", ...rest });
13481
13641
 
13482
13642
  // src/atoms/Section/Section.tsx
13483
- import React124 from "react";
13643
+ import React125 from "react";
13484
13644
  import { tv as tv32 } from "tailwind-variants";
13485
13645
  var sectionStyles = tv32({
13486
13646
  slots: {
@@ -13506,19 +13666,19 @@ var Section3 = ({
13506
13666
  ...rest
13507
13667
  }) => {
13508
13668
  const { base: base2 } = sectionStyles();
13509
- return /* @__PURE__ */ React124.createElement(Box, { component: "section", ...rest, className: base2({ className }) }, children);
13669
+ return /* @__PURE__ */ React125.createElement(Box, { component: "section", ...rest, className: base2({ className }) }, children);
13510
13670
  };
13511
13671
  Section3.Header = ({ children, className, expanded, collapsible, ...rest }) => {
13512
13672
  const { header } = sectionStyles({ expanded, collapsible });
13513
- return /* @__PURE__ */ React124.createElement("div", { ...rest, className: header({ className }) }, children);
13673
+ return /* @__PURE__ */ React125.createElement("div", { ...rest, className: header({ className }) }, children);
13514
13674
  };
13515
- Section3.TitleContainer = React124.forwardRef(
13675
+ Section3.TitleContainer = React125.forwardRef(
13516
13676
  ({ children, className, collapsible, ...rest }, ref) => {
13517
13677
  const { titleContainer: titleContainer2 } = sectionStyles({ collapsible });
13518
- return /* @__PURE__ */ React124.createElement("div", { ...rest, ref, className: titleContainer2({ className }) }, children);
13678
+ return /* @__PURE__ */ React125.createElement("div", { ...rest, ref, className: titleContainer2({ className }) }, children);
13519
13679
  }
13520
13680
  );
13521
- Section3.Toggle = (props) => /* @__PURE__ */ React124.createElement(
13681
+ Section3.Toggle = (props) => /* @__PURE__ */ React125.createElement(
13522
13682
  Icon,
13523
13683
  {
13524
13684
  ...props,
@@ -13531,15 +13691,15 @@ Section3.Toggle = (props) => /* @__PURE__ */ React124.createElement(
13531
13691
  })
13532
13692
  }
13533
13693
  );
13534
- Section3.Title = ({ children, ...rest }) => /* @__PURE__ */ React124.createElement(Typography2.Large, { ...rest, htmlTag: "h2", color: "intense", className: "flex gap-3 items-center" }, children);
13535
- Section3.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React124.createElement(Typography2.Small, { ...rest, color: "muted" }, children);
13694
+ Section3.Title = ({ children, ...rest }) => /* @__PURE__ */ React125.createElement(Typography2.Large, { ...rest, htmlTag: "h2", color: "intense", className: "flex gap-3 items-center" }, children);
13695
+ Section3.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React125.createElement(Typography2.Small, { ...rest, color: "muted" }, children);
13536
13696
  Section3.Actions = ({ children, className, ...rest }) => {
13537
13697
  const { actions: actions2 } = sectionStyles();
13538
- return /* @__PURE__ */ React124.createElement("div", { ...rest, className: actions2({ className }) }, children);
13698
+ return /* @__PURE__ */ React125.createElement("div", { ...rest, className: actions2({ className }) }, children);
13539
13699
  };
13540
13700
  Section3.Body = ({ children, className, ...rest }) => {
13541
13701
  const { body } = sectionStyles();
13542
- return /* @__PURE__ */ React124.createElement("div", { ...rest, className: body({ className }) }, /* @__PURE__ */ React124.createElement(Typography, { htmlTag: "div", color: "default" }, children));
13702
+ return /* @__PURE__ */ React125.createElement("div", { ...rest, className: body({ className }) }, /* @__PURE__ */ React125.createElement(Typography, { htmlTag: "div", color: "default" }, children));
13543
13703
  };
13544
13704
 
13545
13705
  // src/molecules/Section/Section.tsx
@@ -13548,12 +13708,12 @@ var Section4 = (props) => {
13548
13708
  const _collapsible = title ? props.collapsible ?? false : false;
13549
13709
  const _collapsed = title ? props.collapsed : void 0;
13550
13710
  const _defaultCollapsed = title ? props.defaultCollapsed ?? false : false;
13551
- const [isCollapsed, setCollapsed] = React125.useState(_collapsed ?? _defaultCollapsed);
13552
- const [isResting, setResting] = React125.useState(true);
13711
+ const [isCollapsed, setCollapsed] = React126.useState(_collapsed ?? _defaultCollapsed);
13712
+ const [isResting, setResting] = React126.useState(true);
13553
13713
  const [ref, { height }] = useMeasure();
13554
13714
  const toggleAreaRef = useRef15(null);
13555
13715
  const isMounted = useRef15(true);
13556
- React125.useEffect(
13716
+ React126.useEffect(
13557
13717
  () => () => {
13558
13718
  isMounted.current = false;
13559
13719
  },
@@ -13597,7 +13757,10 @@ var Section4 = (props) => {
13597
13757
  { "elementType": "div", "onPress": handleTitleClick, "aria-expanded": !isCollapsed, "aria-controls": regionId },
13598
13758
  toggleAreaRef
13599
13759
  );
13600
- return /* @__PURE__ */ React125.createElement(
13760
+ if ((props.tag || props.chip) && props.chips) {
13761
+ throw new Error("When chips prop is defined, tag and chip prop must be undefined.");
13762
+ }
13763
+ return /* @__PURE__ */ React126.createElement(
13601
13764
  Section3,
13602
13765
  {
13603
13766
  "aria-label": title,
@@ -13606,7 +13769,7 @@ var Section4 = (props) => {
13606
13769
  "Aquarium-Section": !_collapsible
13607
13770
  })
13608
13771
  },
13609
- title && /* @__PURE__ */ React125.createElement(Section3.Header, { expanded: _collapsible && !isCollapsed, collapsible: _collapsible }, /* @__PURE__ */ React125.createElement(
13772
+ title && /* @__PURE__ */ React126.createElement(Section3.Header, { expanded: _collapsible && !isCollapsed, collapsible: _collapsible }, /* @__PURE__ */ React126.createElement(
13610
13773
  Section3.TitleContainer,
13611
13774
  {
13612
13775
  ..._collapsible ? {
@@ -13620,20 +13783,24 @@ var Section4 = (props) => {
13620
13783
  id: toggleId,
13621
13784
  collapsible: _collapsible
13622
13785
  },
13623
- _collapsible && /* @__PURE__ */ React125.createElement(animated6.div, { style: { transform } }, /* @__PURE__ */ React125.createElement(Section3.Toggle, null)),
13624
- /* @__PURE__ */ React125.createElement(Section3.Title, { id: titleId }, /* @__PURE__ */ React125.createElement(LineClamp2, { lines: 1 }, title), props.tag && /* @__PURE__ */ React125.createElement(TagLabel, { ...props.tag }), props.badge && /* @__PURE__ */ React125.createElement(Chip2, { text: props.badge }), props.chip && /* @__PURE__ */ React125.createElement(StatusChip, { ...props.chip })),
13625
- subtitle && /* @__PURE__ */ React125.createElement(Section3.Subtitle, { className: clsx38("row-start-2", { "col-start-2": _collapsible }) }, /* @__PURE__ */ React125.createElement(LineClamp2, { lines: 1 }, subtitle))
13626
- ), !isCollapsed && /* @__PURE__ */ React125.createElement(Section3.Actions, null, props.switch && /* @__PURE__ */ React125.createElement(Switch2, { ...props.switch }), menu && /* @__PURE__ */ React125.createElement(Box.Flex, { alignItems: "center" }, /* @__PURE__ */ React125.createElement(
13786
+ _collapsible && /* @__PURE__ */ React126.createElement(animated6.div, { style: { transform } }, /* @__PURE__ */ React126.createElement(Section3.Toggle, null)),
13787
+ /* @__PURE__ */ React126.createElement(Section3.Title, { id: titleId }, /* @__PURE__ */ React126.createElement(LineClamp2, { lines: 1 }, title), props.tag && /* @__PURE__ */ React126.createElement(TagLabel, { ...props.tag }), props.badge && /* @__PURE__ */ React126.createElement(Chip2, { text: props.badge }), props.chip && /* @__PURE__ */ React126.createElement(StatusChip, { ...props.chip }), props.chips?.map(({ type: chipType, status, text }, index) => {
13788
+ const Component = chipType === "inverse" ? InverseChip : StatusChip;
13789
+ const key = `${status}-${text}-${index}`;
13790
+ return /* @__PURE__ */ React126.createElement(Component, { key, text, status });
13791
+ }) ?? null),
13792
+ subtitle && /* @__PURE__ */ React126.createElement(Section3.Subtitle, { className: clsx38("row-start-2", { "col-start-2": _collapsible }) }, /* @__PURE__ */ React126.createElement(LineClamp2, { lines: 1 }, subtitle))
13793
+ ), !isCollapsed && /* @__PURE__ */ React126.createElement(Section3.Actions, null, props.switch && /* @__PURE__ */ React126.createElement(Switch2, { ...props.switch }), menu && /* @__PURE__ */ React126.createElement(Box.Flex, { alignItems: "center" }, /* @__PURE__ */ React126.createElement(
13627
13794
  DropdownMenu2,
13628
13795
  {
13629
13796
  onAction: (action) => onAction?.(action),
13630
13797
  onOpenChange: onMenuOpenChange,
13631
13798
  placement: defaultContextualMenuPlacement
13632
13799
  },
13633
- /* @__PURE__ */ React125.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React125.createElement(Button2.Icon, { "aria-label": menuAriaLabel, icon: more_default })),
13800
+ /* @__PURE__ */ React126.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React126.createElement(Button2.Icon, { "aria-label": menuAriaLabel, icon: more_default })),
13634
13801
  menu
13635
- )), props.actions && castArray8(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.select && /* @__PURE__ */ React125.createElement(SelectBase, { "aria-labelledby": titleId, ...props.select }))),
13636
- /* @__PURE__ */ React125.createElement(
13802
+ )), props.actions && castArray8(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.select && /* @__PURE__ */ React126.createElement(SelectBase, { "aria-labelledby": titleId, ...props.select }))),
13803
+ /* @__PURE__ */ React126.createElement(
13637
13804
  animated6.div,
13638
13805
  {
13639
13806
  id: regionId,
@@ -13641,7 +13808,7 @@ var Section4 = (props) => {
13641
13808
  style: spring,
13642
13809
  className: clsx38({ "overflow-hidden": _collapsible && (isCollapsed || !isResting) })
13643
13810
  },
13644
- /* @__PURE__ */ React125.createElement("div", { ref }, hasTabs ? /* @__PURE__ */ React125.createElement(
13811
+ /* @__PURE__ */ React126.createElement("div", { ref }, hasTabs ? /* @__PURE__ */ React126.createElement(
13645
13812
  SectionTabs,
13646
13813
  {
13647
13814
  ...children.props,
@@ -13649,22 +13816,22 @@ var Section4 = (props) => {
13649
13816
  "mt-4": _collapsible
13650
13817
  })
13651
13818
  }
13652
- ) : /* @__PURE__ */ React125.createElement(Section3.Body, null, children))
13819
+ ) : /* @__PURE__ */ React126.createElement(Section3.Body, null, children))
13653
13820
  )
13654
13821
  );
13655
13822
  };
13656
- var SectionTabs = createTabsComponent(ModalTab, TabItem, "SectionTabs", (children, selected) => /* @__PURE__ */ React125.createElement(Section3.Body, null, children.find(
13823
+ var SectionTabs = createTabsComponent(ModalTab, TabItem, "SectionTabs", (children, selected) => /* @__PURE__ */ React126.createElement(Section3.Body, null, children.find(
13657
13824
  (node, index) => node?.props.value === selected || index === selected
13658
13825
  )));
13659
13826
 
13660
13827
  // src/molecules/SegmentedControl/SegmentedControl.tsx
13661
- import React126 from "react";
13828
+ import React127 from "react";
13662
13829
  import { tv as tv33 } from "tailwind-variants";
13663
13830
  var segmentedControlStyles = tv33({
13664
13831
  slots: {
13665
13832
  wrapper: [
13666
- "transition border-l border-grey-20 overflow-hidden hover:bg-primary-hover",
13667
- "first:border-l-0 first:rounded-l last:rounded-r",
13833
+ "transition border-l border-muted overflow-hidden hover:bg-primary-hover",
13834
+ "first:border-l-0 first:rounded-l-[var(--aquarium-segmented-control-inner-radius)] last:rounded-r-[var(--aquarium-segmented-control-inner-radius)]",
13668
13835
  "focus-within:border-l-transparent focus-within:relative focus-within:z-50 focus-within:ring-1 focus-within:ring-offset-0 focus-within:ring-primary-default"
13669
13836
  ],
13670
13837
  button: [
@@ -13694,7 +13861,7 @@ var SegmentedControl = ({
13694
13861
  ...rest
13695
13862
  }) => {
13696
13863
  const { wrapper, button } = segmentedControlStyles({ selected });
13697
- return /* @__PURE__ */ React126.createElement("li", { className: wrapper() }, /* @__PURE__ */ React126.createElement("button", { type: "button", ...rest, className: button({ className }), "aria-pressed": selected }, children));
13864
+ return /* @__PURE__ */ React127.createElement("li", { className: wrapper() }, /* @__PURE__ */ React127.createElement("button", { type: "button", ...rest, className: button({ className }), "aria-pressed": selected }, children));
13698
13865
  };
13699
13866
  var segmentedControlGroupStyles = tv33({
13700
13867
  base: "Aquarium-SegmentedControl flex border border-default rounded"
@@ -13707,9 +13874,9 @@ var SegmentedControlGroup = ({
13707
13874
  ariaLabel,
13708
13875
  ...rest
13709
13876
  }) => {
13710
- return /* @__PURE__ */ React126.createElement("ul", { ...rest, "aria-label": ariaLabel, className: segmentedControlGroupStyles({ className }) }, React126.Children.map(
13877
+ return /* @__PURE__ */ React127.createElement("ul", { ...rest, "aria-label": ariaLabel, className: segmentedControlGroupStyles({ className }) }, React127.Children.map(
13711
13878
  children,
13712
- (child) => React126.cloneElement(child, {
13879
+ (child) => React127.cloneElement(child, {
13713
13880
  onClick: () => onChange(child.props.value),
13714
13881
  selected: child.props.value === value
13715
13882
  })
@@ -13717,10 +13884,10 @@ var SegmentedControlGroup = ({
13717
13884
  };
13718
13885
 
13719
13886
  // src/molecules/Stepper/Stepper.tsx
13720
- import React128 from "react";
13887
+ import React129 from "react";
13721
13888
 
13722
13889
  // src/atoms/Stepper/Stepper.tsx
13723
- import React127 from "react";
13890
+ import React128 from "react";
13724
13891
  import { tv as tv34 } from "tailwind-variants";
13725
13892
  var connectorStyles = tv34({
13726
13893
  slots: {
@@ -13801,26 +13968,26 @@ var stepStyles = tv34({
13801
13968
  }
13802
13969
  ]
13803
13970
  });
13804
- var Stepper = ({ className, ...rest }) => /* @__PURE__ */ React127.createElement("div", { ...rest, className });
13971
+ var Stepper = ({ className, ...rest }) => /* @__PURE__ */ React128.createElement("div", { ...rest, className });
13805
13972
  var ConnectorContainer = ({
13806
13973
  className,
13807
13974
  dense = false,
13808
13975
  ...rest
13809
13976
  }) => {
13810
13977
  const { container: container2 } = connectorStyles({ dense });
13811
- return /* @__PURE__ */ React127.createElement("div", { ...rest, className: container2({ className }) });
13978
+ return /* @__PURE__ */ React128.createElement("div", { ...rest, className: container2({ className }) });
13812
13979
  };
13813
13980
  var Connector = ({ children, className, completed = false, dense = false, ...rest }) => {
13814
13981
  const { connector } = connectorStyles({ completed, dense });
13815
- return /* @__PURE__ */ React127.createElement("div", { ...rest, className: connector({ className }) });
13982
+ return /* @__PURE__ */ React128.createElement("div", { ...rest, className: connector({ className }) });
13816
13983
  };
13817
13984
  var Step = ({ className, state, ...rest }) => {
13818
13985
  const { step } = stepStyles({ state });
13819
- return /* @__PURE__ */ React127.createElement("div", { ...rest, className: step({ className }) });
13986
+ return /* @__PURE__ */ React128.createElement("div", { ...rest, className: step({ className }) });
13820
13987
  };
13821
13988
  var Indicator = ({ children, className, state, dense = false, ...rest }) => {
13822
13989
  const { indicator } = stepStyles({ state, dense });
13823
- return /* @__PURE__ */ React127.createElement("div", { ...rest, className: indicator({ className }) }, state === "completed" ? /* @__PURE__ */ React127.createElement(InlineIcon, { icon: tick_default }) : dense ? null : children);
13990
+ return /* @__PURE__ */ React128.createElement("div", { ...rest, className: indicator({ className }) }, state === "completed" ? /* @__PURE__ */ React128.createElement(InlineIcon, { icon: tick_default }) : dense ? null : children);
13824
13991
  };
13825
13992
  Step.Indicator = Indicator;
13826
13993
  Stepper.Step = Step;
@@ -13829,13 +13996,13 @@ Stepper.ConnectorContainer = ConnectorContainer;
13829
13996
 
13830
13997
  // src/molecules/Stepper/Stepper.tsx
13831
13998
  var Stepper2 = ({ children, activeIndex, dense }) => {
13832
- const steps = React128.Children.count(children);
13833
- return /* @__PURE__ */ React128.createElement(Stepper, { role: "list", className: "Aquarium-Stepper" }, /* @__PURE__ */ React128.createElement(Template, { columns: steps }, React128.Children.map(children, (child, index) => {
13999
+ const steps = React129.Children.count(children);
14000
+ return /* @__PURE__ */ React129.createElement(Stepper, { role: "list", className: "Aquarium-Stepper" }, /* @__PURE__ */ React129.createElement(Template, { columns: steps }, React129.Children.map(children, (child, index) => {
13834
14001
  if (!isComponentType(child, Step2)) {
13835
14002
  throw new Error("<Stepper> can only have <Stepper.Step> components as children");
13836
14003
  } else {
13837
14004
  const state = index > activeIndex ? "inactive" : index === activeIndex ? "active" : "completed";
13838
- return /* @__PURE__ */ React128.createElement(Stepper.Step, { state, "aria-current": state === "active" ? "step" : false, role: "listitem" }, index > 0 && index <= steps && /* @__PURE__ */ React128.createElement(Stepper.ConnectorContainer, { dense }, /* @__PURE__ */ React128.createElement(Stepper.ConnectorContainer.Connector, { completed: state === "completed" || state === "active" })), /* @__PURE__ */ React128.createElement(Stepper.Step.Indicator, { state, dense }, index + 1), child.props.children);
14005
+ return /* @__PURE__ */ React129.createElement(Stepper.Step, { state, "aria-current": state === "active" ? "step" : false, role: "listitem" }, index > 0 && index <= steps && /* @__PURE__ */ React129.createElement(Stepper.ConnectorContainer, { dense }, /* @__PURE__ */ React129.createElement(Stepper.ConnectorContainer.Connector, { completed: state === "completed" || state === "active" })), /* @__PURE__ */ React129.createElement(Stepper.Step.Indicator, { state, dense }, index + 1), child.props.children);
13839
14006
  }
13840
14007
  })));
13841
14008
  };
@@ -13845,7 +14012,7 @@ Step2.displayName = "Stepper.Step";
13845
14012
  Stepper2.Step = Step2;
13846
14013
 
13847
14014
  // src/molecules/SwitchGroup/SwitchGroup.tsx
13848
- import React129, { useState as useState14 } from "react";
14015
+ import React130, { useState as useState13 } from "react";
13849
14016
  import { useId as useId18 } from "@react-aria/utils";
13850
14017
  var SwitchGroup = ({
13851
14018
  value,
@@ -13856,7 +14023,7 @@ var SwitchGroup = ({
13856
14023
  children,
13857
14024
  ...props
13858
14025
  }) => {
13859
- const [selectedItems, setSelectedItems] = useState14(value ?? defaultValue ?? []);
14026
+ const [selectedItems, setSelectedItems] = useState13(value ?? defaultValue ?? []);
13860
14027
  if (value !== void 0 && value !== selectedItems) {
13861
14028
  setSelectedItems(value);
13862
14029
  }
@@ -13869,14 +14036,14 @@ var SwitchGroup = ({
13869
14036
  setSelectedItems(updated);
13870
14037
  onChange?.(updated);
13871
14038
  };
13872
- return /* @__PURE__ */ React129.createElement(LabelControl, { fieldset: true, ...labelControlProps, ...errorProps, className: "Aquarium-SwitchGroup" }, /* @__PURE__ */ React129.createElement(InputGroup, { cols }, React129.Children.map(children, (c) => {
14039
+ return /* @__PURE__ */ React130.createElement(LabelControl, { fieldset: true, ...labelControlProps, ...errorProps, className: "Aquarium-SwitchGroup" }, /* @__PURE__ */ React130.createElement(InputGroup, { cols }, React130.Children.map(children, (c) => {
13873
14040
  if (!isComponentType(c, Switch2)) {
13874
14041
  return null;
13875
14042
  }
13876
14043
  const str = c.props.value?.toString();
13877
14044
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
13878
14045
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
13879
- return React129.cloneElement(c, {
14046
+ return React130.cloneElement(c, {
13880
14047
  defaultChecked: c.props.defaultChecked ?? defaultChecked,
13881
14048
  checked: c.props.checked ?? checked,
13882
14049
  onChange: c.props.onChange ?? handleChange,
@@ -13886,18 +14053,18 @@ var SwitchGroup = ({
13886
14053
  })));
13887
14054
  };
13888
14055
  var SwitchGroupSkeleton = ({ options = 2 }) => {
13889
- return /* @__PURE__ */ React129.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React129.createElement("div", { className: "flex flex-wrap flex-col gap-2" }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React129.createElement(Switch2.Skeleton, { key }))));
14056
+ return /* @__PURE__ */ React130.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React130.createElement("div", { className: "flex flex-wrap flex-col gap-2" }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React130.createElement(Switch2.Skeleton, { key }))));
13890
14057
  };
13891
14058
  SwitchGroup.Skeleton = SwitchGroupSkeleton;
13892
14059
  SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
13893
14060
 
13894
14061
  // src/molecules/Textarea/Textarea.tsx
13895
- import React130, { useState as useState15 } from "react";
14062
+ import React131, { useState as useState14 } from "react";
13896
14063
  import { useId as useId19 } from "@react-aria/utils";
13897
14064
  import { clsx as clsx39 } from "clsx";
13898
14065
  import { omit as omit17, toString as toString2 } from "lodash-es";
13899
- var TextareaBase = React130.forwardRef(
13900
- ({ readOnly = false, valid = true, ...props }, ref) => /* @__PURE__ */ React130.createElement(
14066
+ var TextareaBase = React131.forwardRef(
14067
+ ({ readOnly = false, valid = true, ...props }, ref) => /* @__PURE__ */ React131.createElement(
13901
14068
  "textarea",
13902
14069
  {
13903
14070
  ref,
@@ -13907,16 +14074,16 @@ var TextareaBase = React130.forwardRef(
13907
14074
  }
13908
14075
  )
13909
14076
  );
13910
- TextareaBase.Skeleton = () => /* @__PURE__ */ React130.createElement(Skeleton, { height: 58 });
13911
- var Textarea = React130.forwardRef((props, ref) => {
13912
- const [value, setValue] = useState15(props.value ?? props.defaultValue ?? "");
14077
+ TextareaBase.Skeleton = () => /* @__PURE__ */ React131.createElement(Skeleton, { height: 58 });
14078
+ var Textarea = React131.forwardRef((props, ref) => {
14079
+ const [value, setValue] = useState14(props.value ?? props.defaultValue ?? "");
13913
14080
  const defaultId = useId19();
13914
14081
  const id = props.id ?? defaultId;
13915
14082
  const errorMessageId = useId19();
13916
14083
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13917
14084
  const { "data-testid": dataTestId, ...labelControlProps } = getLabelControlProps(props);
13918
14085
  const baseProps = omit17(props, Object.keys(labelControlProps));
13919
- return /* @__PURE__ */ React130.createElement(
14086
+ return /* @__PURE__ */ React131.createElement(
13920
14087
  LabelControl,
13921
14088
  {
13922
14089
  id: `${id}-label`,
@@ -13926,7 +14093,7 @@ var Textarea = React130.forwardRef((props, ref) => {
13926
14093
  ...labelControlProps,
13927
14094
  className: "Aquarium-Textarea"
13928
14095
  },
13929
- /* @__PURE__ */ React130.createElement(
14096
+ /* @__PURE__ */ React131.createElement(
13930
14097
  TextareaBase,
13931
14098
  {
13932
14099
  ref,
@@ -13947,22 +14114,22 @@ var Textarea = React130.forwardRef((props, ref) => {
13947
14114
  );
13948
14115
  });
13949
14116
  Textarea.displayName = "Textarea";
13950
- var TextAreaSkeleton = () => /* @__PURE__ */ React130.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React130.createElement(TextareaBase.Skeleton, null));
14117
+ var TextAreaSkeleton = () => /* @__PURE__ */ React131.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React131.createElement(TextareaBase.Skeleton, null));
13951
14118
  Textarea.Skeleton = TextAreaSkeleton;
13952
14119
  Textarea.Skeleton.displayName = "Textarea.Skeleton";
13953
14120
 
13954
14121
  // src/molecules/Timeline/Timeline.tsx
13955
- import React132 from "react";
14122
+ import React133 from "react";
13956
14123
 
13957
14124
  // src/atoms/Timeline/Timeline.tsx
13958
- import React131 from "react";
14125
+ import React132 from "react";
13959
14126
  import { clsx as clsx40 } from "clsx";
13960
- var Timeline = ({ className, ...rest }) => /* @__PURE__ */ React131.createElement("div", { ...rest, className: clsx40("grid grid-cols-[16px_1fr] gap-x-4", className) });
13961
- var Content2 = ({ className, ...rest }) => /* @__PURE__ */ React131.createElement("div", { ...rest, className: clsx40("pb-6", className) });
13962
- var Separator = ({ className, ...rest }) => /* @__PURE__ */ React131.createElement("div", { ...rest, className: clsx40("flex items-center justify-center h-5 w-5", className) });
13963
- var LineContainer = ({ className, ...rest }) => /* @__PURE__ */ React131.createElement("div", { ...rest, className: clsx40("flex justify-center py-1", className) });
13964
- var Line = ({ className, ...rest }) => /* @__PURE__ */ React131.createElement("div", { ...rest, className: clsx40("w-1 bg-medium h-full justify-self-center", className) });
13965
- var Dot = ({ className, ...rest }) => /* @__PURE__ */ React131.createElement("div", { ...rest, className: clsx40("bg-intense h-[6px] w-[6px] rounded", className) });
14127
+ var Timeline = ({ className, ...rest }) => /* @__PURE__ */ React132.createElement("div", { ...rest, className: clsx40("grid grid-cols-[16px_1fr] gap-x-4", className) });
14128
+ var Content2 = ({ className, ...rest }) => /* @__PURE__ */ React132.createElement("div", { ...rest, className: clsx40("pb-6", className) });
14129
+ var Separator = ({ className, ...rest }) => /* @__PURE__ */ React132.createElement("div", { ...rest, className: clsx40("flex items-center justify-center h-5 w-5", className) });
14130
+ var LineContainer = ({ className, ...rest }) => /* @__PURE__ */ React132.createElement("div", { ...rest, className: clsx40("flex justify-center py-1", className) });
14131
+ var Line = ({ className, ...rest }) => /* @__PURE__ */ React132.createElement("div", { ...rest, className: clsx40("w-1 bg-medium h-full justify-self-center", className) });
14132
+ var Dot = ({ className, ...rest }) => /* @__PURE__ */ React132.createElement("div", { ...rest, className: clsx40("bg-intense h-[6px] w-[6px] rounded", className) });
13966
14133
  Separator.Dot = Dot;
13967
14134
  LineContainer.Line = Line;
13968
14135
  Timeline.Separator = Separator;
@@ -13971,23 +14138,23 @@ Timeline.Content = Content2;
13971
14138
 
13972
14139
  // src/molecules/Timeline/Timeline.tsx
13973
14140
  var TimelineItem = () => null;
13974
- var Timeline2 = ({ children }) => /* @__PURE__ */ React132.createElement("div", { className: "Aquarium-Timeline" }, React132.Children.map(children, (item) => {
14141
+ var Timeline2 = ({ children }) => /* @__PURE__ */ React133.createElement("div", { className: "Aquarium-Timeline" }, React133.Children.map(children, (item) => {
13975
14142
  if (!isComponentType(item, TimelineItem)) {
13976
14143
  throw new Error("<Timeline> can only have <Timeline.Item> components as children");
13977
14144
  } else {
13978
14145
  const { props, key } = item;
13979
- return /* @__PURE__ */ React132.createElement(Timeline, { key: key ?? props.title }, /* @__PURE__ */ React132.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React132.createElement(Icon, { icon: error_default, color: "danger-default" }) : props.variant === "warning" ? /* @__PURE__ */ React132.createElement(Icon, { icon: warningSign_default, color: "warning-default" }) : props.variant === "info" ? /* @__PURE__ */ React132.createElement(Icon, { icon: time_default, color: "info-default" }) : props.variant === "success" ? /* @__PURE__ */ React132.createElement(Icon, { icon: tickCircle_default, color: "success-default" }) : props.variant === "loading" ? /* @__PURE__ */ React132.createElement(Icon, { icon: loading_default, color: "default" }) : /* @__PURE__ */ React132.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React132.createElement(Typography2.Small, { color: "muted" }, props.title), /* @__PURE__ */ React132.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React132.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React132.createElement(Timeline.Content, null, /* @__PURE__ */ React132.createElement(Typography2.Default, null, props.children)));
14146
+ return /* @__PURE__ */ React133.createElement(Timeline, { key: key ?? props.title }, /* @__PURE__ */ React133.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React133.createElement(Icon, { icon: error_default, color: "danger-default" }) : props.variant === "warning" ? /* @__PURE__ */ React133.createElement(Icon, { icon: warningSign_default, color: "warning-default" }) : props.variant === "info" ? /* @__PURE__ */ React133.createElement(Icon, { icon: time_default, color: "info-default" }) : props.variant === "success" ? /* @__PURE__ */ React133.createElement(Icon, { icon: tickCircle_default, color: "success-default" }) : props.variant === "loading" ? /* @__PURE__ */ React133.createElement(Icon, { icon: loading_default, color: "default" }) : /* @__PURE__ */ React133.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React133.createElement(Typography2.Small, { color: "muted" }, props.title), /* @__PURE__ */ React133.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React133.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React133.createElement(Timeline.Content, null, /* @__PURE__ */ React133.createElement(Typography2.Default, null, props.children)));
13980
14147
  }
13981
14148
  }));
13982
- var TimelineItemSkeleton = () => /* @__PURE__ */ React132.createElement(Timeline, null, /* @__PURE__ */ React132.createElement(Timeline.Separator, null, /* @__PURE__ */ React132.createElement(Skeleton, { width: 6, height: 6, rounded: true })), /* @__PURE__ */ React132.createElement(Skeleton, { height: 12, width: 120 }), /* @__PURE__ */ React132.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React132.createElement(Skeleton, { width: 2, height: "100%" })), /* @__PURE__ */ React132.createElement(Timeline.Content, null, /* @__PURE__ */ React132.createElement(Box, { display: "flex", flexDirection: "column", gap: "3" }, /* @__PURE__ */ React132.createElement(Skeleton, { height: 32, width: "100%" }), /* @__PURE__ */ React132.createElement(Skeleton, { height: 32, width: "73%" }), /* @__PURE__ */ React132.createElement(Skeleton, { height: 32, width: "80%" }))));
13983
- var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React132.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React132.createElement(TimelineItemSkeleton, { key })));
14149
+ var TimelineItemSkeleton = () => /* @__PURE__ */ React133.createElement(Timeline, null, /* @__PURE__ */ React133.createElement(Timeline.Separator, null, /* @__PURE__ */ React133.createElement(Skeleton, { width: 6, height: 6, rounded: true })), /* @__PURE__ */ React133.createElement(Skeleton, { height: 12, width: 120 }), /* @__PURE__ */ React133.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React133.createElement(Skeleton, { width: 2, height: "100%" })), /* @__PURE__ */ React133.createElement(Timeline.Content, null, /* @__PURE__ */ React133.createElement(Box, { display: "flex", flexDirection: "column", gap: "3" }, /* @__PURE__ */ React133.createElement(Skeleton, { height: 32, width: "100%" }), /* @__PURE__ */ React133.createElement(Skeleton, { height: 32, width: "73%" }), /* @__PURE__ */ React133.createElement(Skeleton, { height: 32, width: "80%" }))));
14150
+ var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React133.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React133.createElement(TimelineItemSkeleton, { key })));
13984
14151
  Timeline2.Item = TimelineItem;
13985
14152
  Timeline2.Skeleton = TimelineSkeleton;
13986
14153
  Timeline2.Skeleton.displayName = "Timeline.Skeleton";
13987
14154
 
13988
14155
  // src/molecules/TimePicker/TimePicker.tsx
13989
- import React133 from "react";
13990
- var TimePicker = (props) => /* @__PURE__ */ React133.createElement(TimeField2, { ...props });
14156
+ import React134 from "react";
14157
+ var TimePicker = (props) => /* @__PURE__ */ React134.createElement(TimeField2, { ...props });
13991
14158
 
13992
14159
  // src/utils/table/sortByColumn.ts
13993
14160
  var sortByColumn = (items, column, sortState) => {
@@ -14009,13 +14176,13 @@ var sortByColumn = (items, column, sortState) => {
14009
14176
  };
14010
14177
 
14011
14178
  // src/utils/table/useSortState.ts
14012
- import React134 from "react";
14013
- var useSortState = (initialSortState) => React134.useState(initialSortState);
14179
+ import React135 from "react";
14180
+ var useSortState = (initialSortState) => React135.useState(initialSortState);
14014
14181
 
14015
14182
  // src/utils/table/useTableSelect.ts
14016
- import React135 from "react";
14183
+ import React136 from "react";
14017
14184
  var useTableSelect = (data31, { key }) => {
14018
- const [selected, setSelected] = React135.useState([]);
14185
+ const [selected, setSelected] = React136.useState([]);
14019
14186
  const allSelected = selected.length === data31.length;
14020
14187
  const isSelected = (dot) => selected.includes(dot[key]);
14021
14188
  const selectAll = () => setSelected(data31.map((dot) => dot[key]));
@@ -14040,7 +14207,7 @@ var useTableSelect = (data31, { key }) => {
14040
14207
  };
14041
14208
 
14042
14209
  // src/molecules/ItemList/ItemList.tsx
14043
- import React136 from "react";
14210
+ import React137 from "react";
14044
14211
  var ItemList = ({
14045
14212
  columns,
14046
14213
  items,
@@ -14052,9 +14219,9 @@ var ItemList = ({
14052
14219
  const templateColumns = columns.map((column) => column.width ?? "auto");
14053
14220
  const [sortState, setSortState] = useSortState(defaultSort);
14054
14221
  const sortedItems = onSortChanged ? items : sortByColumn(items, columns, sortState);
14055
- return /* @__PURE__ */ React136.createElement(Template, { className: "Aquarium-ItemList", columns: templateColumns, role: "table" }, /* @__PURE__ */ React136.createElement(DataList.Row, { header: true }, columns.map((column) => {
14222
+ return /* @__PURE__ */ React137.createElement(Template, { className: "Aquarium-ItemList", columns: templateColumns, role: "table" }, /* @__PURE__ */ React137.createElement(DataList.Row, { header: true }, columns.map((column) => {
14056
14223
  if (columnHasSort(column)) {
14057
- return /* @__PURE__ */ React136.createElement(
14224
+ return /* @__PURE__ */ React137.createElement(
14058
14225
  DataList.SortCell,
14059
14226
  {
14060
14227
  sticky,
@@ -14082,11 +14249,11 @@ var ItemList = ({
14082
14249
  column.headerName
14083
14250
  );
14084
14251
  }
14085
- return /* @__PURE__ */ React136.createElement(DataList.HeadCell, { key: column.key ?? column.headerName, ...cellProps(column), sticky }, column.headerName);
14086
- })), /* @__PURE__ */ React136.createElement(Rows, { columns, items: sortedItems, level: 0, ...infiniteProps }));
14252
+ return /* @__PURE__ */ React137.createElement(DataList.HeadCell, { key: column.key ?? column.headerName, ...cellProps(column), sticky }, column.headerName);
14253
+ })), /* @__PURE__ */ React137.createElement(Rows, { columns, items: sortedItems, level: 0, ...infiniteProps }));
14087
14254
  };
14088
14255
  var Rows = ({ columns, items, level, isLastGroup, ...infiniteProps }) => {
14089
- return /* @__PURE__ */ React136.createElement(
14256
+ return /* @__PURE__ */ React137.createElement(
14090
14257
  List,
14091
14258
  {
14092
14259
  ...level === 0 ? infiniteProps : {},
@@ -14095,22 +14262,22 @@ var Rows = ({ columns, items, level, isLastGroup, ...infiniteProps }) => {
14095
14262
  const hasSubItems = item.items && item.items.length > 0;
14096
14263
  const isLastItem = itemIndex === items.length - 1;
14097
14264
  const noDivider = level === 0 && isLastItem || level > 0 && (isLastGroup || !isLastItem) || hasSubItems;
14098
- return /* @__PURE__ */ React136.createElement(React136.Fragment, { key: item.id }, /* @__PURE__ */ React136.createElement(DataList.Row, { noDivider }, /* @__PURE__ */ React136.createElement(
14265
+ return /* @__PURE__ */ React137.createElement(React137.Fragment, { key: item.id }, /* @__PURE__ */ React137.createElement(DataList.Row, { noDivider }, /* @__PURE__ */ React137.createElement(
14099
14266
  List,
14100
14267
  {
14101
14268
  items: columns,
14102
- renderItem: (column, columnIndex) => /* @__PURE__ */ React136.createElement(
14269
+ renderItem: (column, columnIndex) => /* @__PURE__ */ React137.createElement(
14103
14270
  DataList.Cell,
14104
14271
  {
14105
14272
  key: column.key ?? column.headerName,
14106
14273
  ...cellProps(column),
14107
14274
  style: level > 1 && columnIndex === 0 ? { paddingLeft: (level - 1) * 60 } : void 0
14108
14275
  },
14109
- level > 0 && columnIndex === 0 && /* @__PURE__ */ React136.createElement(DataList.TreeLine, { isLast: itemIndex === items.length - 1 }),
14110
- /* @__PURE__ */ React136.createElement(DataListCell, { column, row: item, index: columnIndex, rows: items })
14276
+ level > 0 && columnIndex === 0 && /* @__PURE__ */ React137.createElement(DataList.TreeLine, { isLast: itemIndex === items.length - 1 }),
14277
+ /* @__PURE__ */ React137.createElement(DataListCell, { column, row: item, index: columnIndex, rows: items })
14111
14278
  )
14112
14279
  }
14113
- )), item.items && /* @__PURE__ */ React136.createElement(WithGroup, { level }, /* @__PURE__ */ React136.createElement(
14280
+ )), item.items && /* @__PURE__ */ React137.createElement(WithGroup, { level }, /* @__PURE__ */ React137.createElement(
14114
14281
  Rows,
14115
14282
  {
14116
14283
  columns,
@@ -14123,7 +14290,7 @@ var Rows = ({ columns, items, level, isLastGroup, ...infiniteProps }) => {
14123
14290
  }
14124
14291
  );
14125
14292
  };
14126
- var WithGroup = ({ level, children }) => level === 0 ? /* @__PURE__ */ React136.createElement(DataList.Row, { isGroup: true }, children) : /* @__PURE__ */ React136.createElement(React136.Fragment, null, children);
14293
+ var WithGroup = ({ level, children }) => level === 0 ? /* @__PURE__ */ React137.createElement(DataList.Row, { isGroup: true }, children) : /* @__PURE__ */ React137.createElement(React137.Fragment, null, children);
14127
14294
 
14128
14295
  // src/molecules/index.ts
14129
14296
  var SelectItem = Select.Item;