@aivenio/aquarium 6.0.0-rc5 → 6.0.0-rc6

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 (36) hide show
  1. package/dist/_variables.scss +1 -0
  2. package/dist/atoms.cjs +89 -43
  3. package/dist/atoms.mjs +89 -43
  4. package/dist/charts.cjs +1 -0
  5. package/dist/charts.mjs +1 -0
  6. package/dist/src/atoms/Alert/Alert.d.ts +1 -0
  7. package/dist/src/atoms/Alert/Alert.js +12 -4
  8. package/dist/src/atoms/DataList/DataList.js +6 -6
  9. package/dist/src/atoms/DropdownMenu/DropdownMenu.js +2 -2
  10. package/dist/src/atoms/Modal/Modal.d.ts +3 -0
  11. package/dist/src/atoms/Modal/Modal.js +10 -8
  12. package/dist/src/atoms/RadioButton/RadioButton.js +4 -4
  13. package/dist/src/atoms/Table/Table.d.ts +5 -4
  14. package/dist/src/atoms/Table/Table.js +6 -6
  15. package/dist/src/molecules/Alert/Alert.js +2 -2
  16. package/dist/src/molecules/Card/Card.js +13 -3
  17. package/dist/src/molecules/Card/Compact.js +13 -3
  18. package/dist/src/molecules/ControlLabel/ControlLabel.js +2 -2
  19. package/dist/src/molecules/DataList/DataList.js +5 -4
  20. package/dist/src/molecules/DataList/DataListComponents.d.ts +4 -2
  21. package/dist/src/molecules/DataList/DataListComponents.js +10 -7
  22. package/dist/src/molecules/DataList/DataListContext.d.ts +1 -0
  23. package/dist/src/molecules/DataList/DataListContext.js +2 -1
  24. package/dist/src/molecules/DataList/DataListGroup.js +1 -1
  25. package/dist/src/molecules/DataList/DataListToolbar.js +8 -6
  26. package/dist/src/tokens/tokens.json +1 -0
  27. package/dist/src/utils/actions.d.ts +1 -2
  28. package/dist/src/utils/actions.js +3 -3
  29. package/dist/src/utils/stickyStyles.js +1 -1
  30. package/dist/styles.css +50 -27
  31. package/dist/system.cjs +89 -43
  32. package/dist/system.mjs +89 -43
  33. package/dist/tailwind.theme.json +1 -0
  34. package/dist/tokens.json +1 -0
  35. package/dist/tsconfig.module.tsbuildinfo +1 -1
  36. package/package.json +1 -1
@@ -176,6 +176,7 @@ $background-color-body: $colors-white;
176
176
  $background-color-layer: $colors-white;
177
177
  $background-color-inverse: $colors-grey-80;
178
178
  $background-color-overlay: $colors-white;
179
+ $background-color-backdrop: rgb(from $colors-grey-100 r g b / 70%);
179
180
  $background-color-muted: $colors-grey-5;
180
181
  $background-color-medium: $colors-grey-10;
181
182
  $background-color-intense: $colors-grey-30;
package/dist/atoms.cjs CHANGED
@@ -865,6 +865,7 @@ var tokens_default = {
865
865
  "body-intense": "rgba(31,32,33,1)",
866
866
  inverse: "rgba(31,32,33,1)",
867
867
  overlay: "rgba(255,255,255,1)",
868
+ backdrop: "rgb(from rgba(13,14,16,1) r g b / 70%)",
868
869
  "popover-content": "rgba(255,255,255,1)",
869
870
  muted: "rgba(244,244,244,1)",
870
871
  default: "rgba(235,235,235,1)",
@@ -1855,6 +1856,7 @@ var tailwind_theme_default = {
1855
1856
  "body-intense": "var(--aquarium-background-color-body-intense)",
1856
1857
  inverse: "var(--aquarium-background-color-inverse)",
1857
1858
  overlay: "var(--aquarium-background-color-overlay)",
1859
+ backdrop: "var(--aquarium-background-color-backdrop)",
1858
1860
  "popover-content": "var(--aquarium-background-color-popover-content)",
1859
1861
  muted: "var(--aquarium-background-color-muted)",
1860
1862
  default: "var(--aquarium-background-color-default)",
@@ -3077,6 +3079,7 @@ var Alert2 = ({
3077
3079
  className: "Aquarium-Alert",
3078
3080
  type,
3079
3081
  dense: Boolean(title),
3082
+ hasAction: Boolean(action),
3080
3083
  "aria-describedby": descriptionID,
3081
3084
  "aria-labelledby": title ? titleID : void 0
3082
3085
  },
@@ -3817,11 +3820,11 @@ var Checkbox = import_react35.default.forwardRef(
3817
3820
  var import_react36 = __toESM(require("react"));
3818
3821
  var import_tailwind_variants11 = require("tailwind-variants");
3819
3822
  var radioButtonClasses = (0, import_tailwind_variants11.tv)({
3820
- base: "inline-flex justify-center items-center self-center appearance-none w-5 h-5 p-[3px] rounded-full border border-default outline-none focus:border-info-default checked:bg-primary-graphic checked:shadow-bodyInset",
3823
+ base: "inline-flex justify-center items-center self-center appearance-none w-5 h-5 p-[3px] rounded-full border border-default outline-none focus:border-info-default checked:bg-primary-inverse checked:shadow-bodyInset",
3821
3824
  variants: {
3822
3825
  disabled: {
3823
- true: "cursor-not-allowed border-muted bg-muted checked:bg-primary-muted checked:border-transparent",
3824
- false: "cursor-pointer hover:border-intense checked:border-primary-default"
3826
+ true: "cursor-not-allowed border-muted bg-muted checked:bg-intense checked:border-transparent",
3827
+ false: "cursor-pointer hover:bg-primary-active hover:border-primary-default checked:border-primary-default hover:checked:bg-primary-inverse"
3825
3828
  }
3826
3829
  }
3827
3830
  });
@@ -3995,7 +3998,15 @@ var CompactCard = ({
3995
3998
  ...commonProps
3996
3999
  },
3997
4000
  commonContent,
3998
- (primaryAction ?? secondaryAction) && /* @__PURE__ */ import_react40.default.createElement(Card.Actions, { disabled, dense: true }, primaryAction && renderAction({ kind: "secondary", dense: true, action: primaryAction, disabled }), secondaryAction && renderAction({ kind: "ghost", dense: true, action: secondaryAction, disabled }))
4001
+ (primaryAction ?? secondaryAction) && /* @__PURE__ */ import_react40.default.createElement(Card.Actions, { disabled, dense: true }, primaryAction && renderAction({
4002
+ kind: "secondary",
4003
+ dense: true,
4004
+ action: { ...primaryAction, disabled: primaryAction.disabled || disabled }
4005
+ }), secondaryAction && renderAction({
4006
+ kind: "ghost",
4007
+ dense: true,
4008
+ action: { ...secondaryAction, disabled: secondaryAction.disabled || disabled }
4009
+ }))
3999
4010
  );
4000
4011
  };
4001
4012
  var CompactSkeleton = ({
@@ -4105,7 +4116,15 @@ var Card2 = ({
4105
4116
  hasImage: Boolean(image) && !chipElements && !icons.length
4106
4117
  },
4107
4118
  commonContent,
4108
- (primaryAction ?? secondaryAction) && /* @__PURE__ */ import_react41.default.createElement(Card.Actions, { disabled }, primaryAction && renderAction({ kind: "secondary", dense: true, action: primaryAction, disabled }), secondaryAction && renderAction({ kind: "ghost", dense: true, action: secondaryAction, disabled }))
4119
+ (primaryAction ?? secondaryAction) && /* @__PURE__ */ import_react41.default.createElement(Card.Actions, { disabled }, primaryAction && renderAction({
4120
+ kind: "secondary",
4121
+ dense: true,
4122
+ action: { ...primaryAction, disabled: primaryAction.disabled || disabled }
4123
+ }), secondaryAction && renderAction({
4124
+ kind: "ghost",
4125
+ dense: true,
4126
+ action: { ...secondaryAction, disabled: secondaryAction.disabled || disabled }
4127
+ }))
4109
4128
  );
4110
4129
  };
4111
4130
  Card2.Title = Card.Title;
@@ -4167,7 +4186,7 @@ var ControlLabel = ({
4167
4186
  },
4168
4187
  rtl ? labelEl : children,
4169
4188
  rtl ? children : labelEl,
4170
- caption && /* @__PURE__ */ import_react43.default.createElement(Typography2, { className: (0, import_clsx13.clsx)({ "col-start-2": !rtl }), variant: "small", color: disabled ? "inactive" : "default" }, caption)
4189
+ caption && /* @__PURE__ */ import_react43.default.createElement(Typography2, { className: (0, import_clsx13.clsx)({ "col-start-2": !rtl }), variant: "small", color: disabled ? "inactive" : "muted" }, caption)
4171
4190
  );
4172
4191
  };
4173
4192
 
@@ -5648,24 +5667,24 @@ var rowClassNamesBase = (0, import_tailwind_variants14.tv)({
5648
5667
  });
5649
5668
  var rowClassNames = rowClassNamesBase();
5650
5669
  var cellClassNamesBase = (0, import_tailwind_variants14.tv)({
5651
- base: "px-4 border-b typography-default leading-[18px]"
5670
+ base: "px-4 border-b leading-[18px]"
5652
5671
  });
5653
5672
  var cellClassNames = cellClassNamesBase();
5654
5673
  var rowClasses = (0, import_tailwind_variants14.tv)({
5655
5674
  extend: rowClassNamesBase,
5656
5675
  variants: {
5657
5676
  disabled: {
5658
- true: "opacity-70",
5677
+ true: "[&>div]:text-inactive",
5659
5678
  false: ""
5660
5679
  }
5661
5680
  }
5662
5681
  });
5663
5682
  var bodyCellClasses = (0, import_tailwind_variants14.tv)({
5664
- base: "text-default py-3",
5683
+ base: "py-5 typography-default",
5665
5684
  variants: {
5666
5685
  table: {
5667
5686
  true: "h-[50px]",
5668
- false: "min-h-[50px]"
5687
+ false: "min-h-[48px]"
5669
5688
  },
5670
5689
  stickyColumn: {
5671
5690
  left: "sticky z-10 bg-body group-hover:bg-muted left-0",
@@ -5689,7 +5708,7 @@ var alignClasses = (0, import_tailwind_variants14.tv)({
5689
5708
  }
5690
5709
  });
5691
5710
  var headCellClasses = (0, import_tailwind_variants14.tv)({
5692
- base: "py-[14px] text-left border-intense text-muted font-semibold whitespace-nowrap",
5711
+ base: "py-4 text-left border-muted text-muted whitespace-nowrap min-h-[40px] typography-small-strong",
5693
5712
  variants: {
5694
5713
  sticky: {
5695
5714
  true: "sticky bg-body top-0 z-10",
@@ -5852,7 +5871,7 @@ var rowClasses2 = (0, import_tailwind_variants15.tv)({
5852
5871
  false: ""
5853
5872
  },
5854
5873
  disabled: {
5855
- true: "children:opacity-70",
5874
+ true: "[&>div]:text-inactive",
5856
5875
  false: ""
5857
5876
  },
5858
5877
  active: {
@@ -5893,10 +5912,10 @@ var sortCellIconsClasses = (0, import_tailwind_variants15.tv)({
5893
5912
  }
5894
5913
  });
5895
5914
  var toolbarContainerClasses = (0, import_tailwind_variants15.tv)({
5896
- base: "col-span-full flex items-stretch py-4 px-l2 border-b border-default",
5915
+ base: "col-span-full flex items-stretch py-4 px-l2 border-b border-muted",
5897
5916
  variants: {
5898
5917
  sticky: {
5899
- true: "sticky top-[47px] bg-body z-10",
5918
+ true: "sticky top-[47px] bg-layer z-10",
5900
5919
  false: ""
5901
5920
  }
5902
5921
  }
@@ -5943,7 +5962,7 @@ var Cell = ({
5943
5962
  cellClassNames,
5944
5963
  getBodyCellClassNames(false, stickyColumn),
5945
5964
  alignClasses2({ align }),
5946
- "border-default",
5965
+ "border-muted",
5947
5966
  className
5948
5967
  )
5949
5968
  }
@@ -5977,7 +5996,7 @@ var Row = ({
5977
5996
  };
5978
5997
  var SubGroupSpacing = ({ className, divider = false, ...rest }) => /* @__PURE__ */ import_react66.default.createElement("span", { ...rest, "aria-hidden": true, className: (0, import_clsx24.clsx)(subGroupSpacingClasses({ divider }), className) });
5979
5998
  var SortCell = ({ children, direction = "none", onClick, sticky, ...rest }) => /* @__PURE__ */ import_react66.default.createElement(HeadCell, { ...rest, "aria-sort": direction, role: "columnheader", sticky }, /* @__PURE__ */ import_react66.default.createElement("span", { className: getSortCellButtonClassNames(rest.align), role: "button", tabIndex: -1, onClick }, children, /* @__PURE__ */ import_react66.default.createElement("div", { "data-sort-icons": true, className: sortCellIconsClasses({ direction }) }, /* @__PURE__ */ import_react66.default.createElement(InlineIcon2, { icon: chevronUp_default, className: getSortCellIconClassNames(direction === "ascending") }), /* @__PURE__ */ import_react66.default.createElement(InlineIcon2, { icon: chevronDown_default, className: getSortCellIconClassNames(direction === "descending") }))));
5980
- var EmptyGroup = ({ icon, children }) => /* @__PURE__ */ import_react66.default.createElement("div", { className: emptyGroupClasses() }, icon && /* @__PURE__ */ import_react66.default.createElement(Icon2, { icon, width: 22 }), children);
5999
+ var EmptyGroup = ({ icon, children }) => /* @__PURE__ */ import_react66.default.createElement("div", { className: emptyGroupClasses() }, icon && /* @__PURE__ */ import_react66.default.createElement(Icon2, { icon, width: 18 }), children);
5981
6000
  DataList.EmptyGroup = EmptyGroup;
5982
6001
  DataList.EmptyGroup.displayName = "DataList.EmptyGroup";
5983
6002
  DataList.HeadCell = HeadCell;
@@ -6131,7 +6150,7 @@ function useScrollStyles({
6131
6150
  containerRef,
6132
6151
  skip = false,
6133
6152
  direction = "horizontal",
6134
- options = { borderColor: "210, 210, 214", boxShadowColor: "58, 58, 68" }
6153
+ options = { borderColor: "210, 210, 214", boxShadowColor: "74, 74, 83" }
6135
6154
  }) {
6136
6155
  const scrollXProgress = useScrollProgress({ containerRef, skip });
6137
6156
  return useStickyStyles(scrollXProgress, direction, options);
@@ -6229,7 +6248,7 @@ var import_react_aria_components2 = require("react-aria-components");
6229
6248
  var import_clsx25 = require("clsx");
6230
6249
  var import_tailwind_variants16 = require("tailwind-variants");
6231
6250
  var dropdownMenuStyles = (0, import_tailwind_variants16.tv)({
6232
- base: "bg-overlay w-full flex flex-col overflow-x-hidden typography-small text-default"
6251
+ base: "bg-overlay w-full flex flex-col overflow-x-hidden typography-default text-default"
6233
6252
  });
6234
6253
  var DropdownMenu = ({ className, children, ...props }) => {
6235
6254
  return /* @__PURE__ */ import_react69.default.createElement(import_react_aria_components2.Menu, { className: dropdownMenuStyles({ className: ["Aquarium-DropdownMenu", className] }), ...props }, children);
@@ -6452,7 +6471,8 @@ var DataListRowMenu = ({
6452
6471
  menu,
6453
6472
  onAction,
6454
6473
  onMenuOpenChange,
6455
- menuAriaLabel
6474
+ menuAriaLabel,
6475
+ disabled = false
6456
6476
  }) => {
6457
6477
  if (!menu) {
6458
6478
  return null;
@@ -6465,7 +6485,7 @@ var DataListRowMenu = ({
6465
6485
  onAction: (action) => onAction?.(action, row, index),
6466
6486
  onOpenChange: onMenuOpenChange
6467
6487
  },
6468
- /* @__PURE__ */ import_react74.default.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ import_react74.default.createElement(Button2.Icon, { "aria-label": menuAriaLabel, icon: more_default })),
6488
+ /* @__PURE__ */ import_react74.default.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ import_react74.default.createElement(Button2.Icon, { "aria-label": menuAriaLabel, icon: more_default, disabled })),
6469
6489
  menuContent
6470
6490
  ));
6471
6491
  };
@@ -6519,7 +6539,7 @@ var DataListRow = ({
6519
6539
  ...additionalColumnProps(column, columnIndex, columns, row),
6520
6540
  className: rowClassName?.(row, index, rows)
6521
6541
  },
6522
- /* @__PURE__ */ import_react74.default.createElement(DataListCell, { column, row, index, rows })
6542
+ /* @__PURE__ */ import_react74.default.createElement(DataListCell, { column, row, index, rows, disabled: isRowDisabled })
6523
6543
  );
6524
6544
  return createAnimatedCell({
6525
6545
  cellElement: cell2,
@@ -6537,7 +6557,8 @@ var DataListCell = ({
6537
6557
  column,
6538
6558
  row,
6539
6559
  index,
6540
- rows: _rows
6560
+ rows: _rows,
6561
+ disabled = false
6541
6562
  }) => {
6542
6563
  let cellContent = DEFAULT_CONTENT;
6543
6564
  const rows = areRowsGrouped(_rows) ? void 0 : _rows;
@@ -6552,13 +6573,17 @@ var DataListCell = ({
6552
6573
  case "action": {
6553
6574
  const action = renameProperty("text", "children", column.action(row, index, rows));
6554
6575
  if (action) {
6576
+ const isActionDisabled = disabled || action.disabled;
6555
6577
  cellContent = /* @__PURE__ */ import_react74.default.createElement(
6556
6578
  Button2.Secondary,
6557
6579
  {
6558
6580
  dense: true,
6559
6581
  ...action,
6582
+ disabled: isActionDisabled,
6560
6583
  onClick: (e) => {
6561
- action.onClick();
6584
+ if (!isActionDisabled) {
6585
+ action.onClick();
6586
+ }
6562
6587
  e.stopPropagation();
6563
6588
  }
6564
6589
  }
@@ -6609,7 +6634,8 @@ var DataListCell = ({
6609
6634
  var import_react75 = require("react");
6610
6635
  var DataListContext = (0, import_react75.createContext)({
6611
6636
  rows: [],
6612
- selectedRows: void 0
6637
+ selectedRows: void 0,
6638
+ selectable: false
6613
6639
  });
6614
6640
  var useDataListContext = () => {
6615
6641
  const ctx = (0, import_react75.useContext)(DataListContext);
@@ -6823,7 +6849,7 @@ var DataListGroup = ({
6823
6849
  )), /* @__PURE__ */ import_react76.default.createElement(
6824
6850
  DataList.Cell,
6825
6851
  {
6826
- className: "gap-3",
6852
+ className: "gap-2",
6827
6853
  style: { paddingLeft: `${GAP + level * INDENTATION}px`, gridColumn: `${selectable ? 2 : 1} / -1` }
6828
6854
  },
6829
6855
  /* @__PURE__ */ import_react76.default.createElement(Accordion.Toggle, { panelId: key, onChange: onGroupToggled }),
@@ -6874,13 +6900,19 @@ var DataListToolbar = ({
6874
6900
  menuLabel,
6875
6901
  sticky = true
6876
6902
  }) => {
6877
- const { selectedRows } = useDataListContext();
6903
+ const { selectedRows, selectable } = useDataListContext();
6878
6904
  const actions2 = (0, import_lodash_es26.castArray)(_actions).filter(Boolean);
6905
+ const noRowsSelected = (selectedRows?.length ?? 0) === 0;
6906
+ const disableToolbarActions = selectable && noRowsSelected;
6879
6907
  return /* @__PURE__ */ import_react78.default.createElement(DataList.Toolbar.Container, { sticky }, /* @__PURE__ */ import_react78.default.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ import_react78.default.createElement(DataList.Toolbar.SelectionCount, null, selectedRows?.length ?? 0, " selected")), actions2.length > 0 && /* @__PURE__ */ import_react78.default.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ import_react78.default.createElement(DataList.Toolbar.Actions, null, actions2.map(
6880
6908
  (action) => renderAction({
6881
6909
  kind: "ghost",
6882
6910
  dense: true,
6883
- action: { ...action, onClick: () => action.onClick(selectedRows ?? []) }
6911
+ action: {
6912
+ ...action,
6913
+ disabled: disableToolbarActions || action.disabled,
6914
+ onClick: () => action.onClick(selectedRows ?? [])
6915
+ }
6884
6916
  })
6885
6917
  ))), menu && /* @__PURE__ */ import_react78.default.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ import_react78.default.createElement(
6886
6918
  DropdownMenu2,
@@ -6889,7 +6921,7 @@ var DataListToolbar = ({
6889
6921
  onAction: (key) => onAction(key, selectedRows ?? []),
6890
6922
  onOpenChange: onMenuOpenChange
6891
6923
  },
6892
- /* @__PURE__ */ import_react78.default.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ import_react78.default.createElement(Button2.Dropdown, { kind: "ghost", dense: true }, menuLabel)),
6924
+ /* @__PURE__ */ import_react78.default.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ import_react78.default.createElement(Button2.Dropdown, { kind: "ghost", dense: true, disabled: disableToolbarActions }, menuLabel)),
6893
6925
  menu
6894
6926
  )));
6895
6927
  };
@@ -6995,7 +7027,7 @@ var DataList2 = ({
6995
7027
  }
6996
7028
  )), isCollapsible && /* @__PURE__ */ import_react79.default.createElement(DataList.HeadCell, { align: "left", sticky }), columns.map((column) => {
6997
7029
  const content = column.headerTooltip ? /* @__PURE__ */ import_react79.default.createElement(Tooltip, { placement: column.headerTooltip.placement, content: column.headerTooltip.content }, column.headerName) : column.headerName;
6998
- const headerContentAndIcon = column.icon ? /* @__PURE__ */ import_react79.default.createElement(Box.Flex, { flexDirection: "row", gap: "3", alignItems: "center" }, /* @__PURE__ */ import_react79.default.createElement(InlineIcon2, { icon: column.icon, height: "22", color: "muted", "aria-hidden": true }), content) : content;
7030
+ const headerContentAndIcon = column.icon ? /* @__PURE__ */ import_react79.default.createElement(Box.Flex, { flexDirection: "row", gap: "2", alignItems: "center" }, /* @__PURE__ */ import_react79.default.createElement(InlineIcon2, { icon: column.icon, width: 18, height: 18, color: "muted", "aria-hidden": true }), content) : content;
6999
7031
  const cell2 = columnHasSort(column) ? /* @__PURE__ */ import_react79.default.createElement(
7000
7032
  DataList.SortCell,
7001
7033
  {
@@ -7071,7 +7103,8 @@ var DataList2 = ({
7071
7103
  menu,
7072
7104
  onAction,
7073
7105
  onMenuOpenChange,
7074
- menuAriaLabel
7106
+ menuAriaLabel,
7107
+ disabled: isDisabled
7075
7108
  }
7076
7109
  ),
7077
7110
  disabled,
@@ -7128,7 +7161,8 @@ var DataList2 = ({
7128
7161
  {
7129
7162
  value: {
7130
7163
  rows: (0, import_lodash_es27.isArray)(rows) ? sortedRows : rows,
7131
- selectedRows: selected
7164
+ selectedRows: selected,
7165
+ selectable: Boolean(selectable)
7132
7166
  }
7133
7167
  },
7134
7168
  wrappedContent
@@ -10285,7 +10319,7 @@ var bodyMaskClasses = (0, import_tailwind_variants23.tv)({
10285
10319
  'after:content-[""]',
10286
10320
  "after:pointer-events-none",
10287
10321
  "after:sticky",
10288
- "after:bottom-0",
10322
+ "after:bottom-3",
10289
10323
  "after:left-0",
10290
10324
  "after:h-5",
10291
10325
  "after:flex-shrink-0",
@@ -10300,12 +10334,13 @@ var bodyMaskClasses = (0, import_tailwind_variants23.tv)({
10300
10334
  var modalStyles = (0, import_tailwind_variants23.tv)({
10301
10335
  slots: {
10302
10336
  overlay: "inset-0 overflow-y-auto z-modal fixed",
10303
- backdrop: "-z-10 fixed min-w-full min-h-full bg-inverse opacity-30",
10304
- dialog: "bg-overlay max-h-full flex flex-col",
10337
+ backdrop: "-z-10 fixed min-w-full min-h-full bg-backdrop",
10338
+ dialog: "Aquarium-Modal.Container bg-overlay max-h-full flex flex-col",
10305
10339
  header: "pl-7 pr-[64px] pt-6 pb-4 gap-3 flex items-center",
10306
10340
  headerImage: "h-[120px] min-h-[120px] w-full",
10307
10341
  titleContainer: "flex flex-col grow",
10308
10342
  title: "",
10343
+ subtitle: "max-w-[700px]",
10309
10344
  closeButtonContainer: "absolute top-[24px] right-[28px]",
10310
10345
  body: [
10311
10346
  "grow overflow-y-auto text-default flex flex-col",
@@ -10367,7 +10402,7 @@ var modalStyles = (0, import_tailwind_variants23.tv)({
10367
10402
  isResponsive: true,
10368
10403
  class: {
10369
10404
  overlay: "py-0 sm:py-7",
10370
- dialog: "w-dvw h-dvh mx-0 rounded-none sm:h-auto sm:w-full sm:rounded sm:mx-7"
10405
+ dialog: "w-dvw h-dvh mx-0 rounded-none sm:h-auto sm:w-full sm:rounded-lg sm:mx-7"
10371
10406
  }
10372
10407
  },
10373
10408
  {
@@ -10376,7 +10411,7 @@ var modalStyles = (0, import_tailwind_variants23.tv)({
10376
10411
  isResponsive: false,
10377
10412
  class: {
10378
10413
  overlay: "py-0",
10379
- dialog: "h-auto w-full rounded mx-7"
10414
+ dialog: "h-auto w-full rounded-lg mx-7"
10380
10415
  }
10381
10416
  },
10382
10417
  {
@@ -10460,7 +10495,10 @@ Modal.Title = ({ kind = "dialog", children, className, ...rest }) => {
10460
10495
  const { title } = modalStyles({ kind });
10461
10496
  return /* @__PURE__ */ import_react92.default.createElement(Typography, { htmlTag: "h2", variant: "subheading", color: "intense", className: title({ className }), ...rest }, children);
10462
10497
  };
10463
- Modal.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ import_react92.default.createElement(Typography, { variant: "default", color: "default", ...rest }, children);
10498
+ Modal.Subtitle = ({ children, className, ...rest }) => {
10499
+ const { subtitle } = modalStyles();
10500
+ return /* @__PURE__ */ import_react92.default.createElement(Typography, { variant: "default", color: "muted", className: subtitle({ className }), ...rest }, children);
10501
+ };
10464
10502
  Modal.TitleContainer = ({ children, className, ...rest }) => {
10465
10503
  const { titleContainer: titleContainer2 } = modalStyles();
10466
10504
  return /* @__PURE__ */ import_react92.default.createElement("div", { ...rest, className: titleContainer2({ className }) }, children);
@@ -12547,7 +12585,7 @@ var import_react135 = __toESM(require("react"));
12547
12585
  var SelectItem = Select.Item;
12548
12586
 
12549
12587
  // src/utils/actions.tsx
12550
- var renderAction = ({ kind = "primary", dense = false, action, type = "button", disabled }) => {
12588
+ var renderAction = ({ kind = "primary", dense = false, action, type = "button" }) => {
12551
12589
  return isLink(action) ? /* @__PURE__ */ import_react136.default.createElement(
12552
12590
  Link2.Button,
12553
12591
  {
@@ -12555,11 +12593,10 @@ var renderAction = ({ kind = "primary", dense = false, action, type = "button",
12555
12593
  kind,
12556
12594
  dense,
12557
12595
  ...(0, import_lodash_es45.omit)(action, "text"),
12558
- disabled,
12559
- className: disabled ? "pointer-events-none" : ""
12596
+ className: action.disabled ? "pointer-events-none" : void 0
12560
12597
  },
12561
12598
  action.text
12562
- ) : /* @__PURE__ */ import_react136.default.createElement(Button2, { key: action.text, kind, dense, ...(0, import_lodash_es45.omit)(action, "text"), type, disabled }, action.text);
12599
+ ) : /* @__PURE__ */ import_react136.default.createElement(Button2, { key: action.text, kind, dense, ...(0, import_lodash_es45.omit)(action, "text"), type }, action.text);
12563
12600
  };
12564
12601
 
12565
12602
  // src/molecules/Toast/Timer.tsx
@@ -12680,7 +12717,7 @@ var alertTypes = {
12680
12717
  };
12681
12718
  var alertStyles = (0, import_tailwind_variants33.tv)({
12682
12719
  slots: {
12683
- base: "px-4 py-3 rounded-lg grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-2",
12720
+ base: "px-4 rounded-lg grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-2",
12684
12721
  title: "col-start-2",
12685
12722
  description: "col-start-2",
12686
12723
  actions: "flex gap-4 col-start-2",
@@ -12699,6 +12736,14 @@ var alertStyles = (0, import_tailwind_variants33.tv)({
12699
12736
  false: {
12700
12737
  icon: "self-start"
12701
12738
  }
12739
+ },
12740
+ hasAction: {
12741
+ true: {
12742
+ base: "pt-3 pb-2"
12743
+ },
12744
+ false: {
12745
+ base: "py-3"
12746
+ }
12702
12747
  }
12703
12748
  }
12704
12749
  });
@@ -12722,9 +12767,10 @@ var Alert = ({
12722
12767
  className,
12723
12768
  type,
12724
12769
  dense = false,
12770
+ hasAction = false,
12725
12771
  ...rest
12726
12772
  }) => {
12727
- const { base: base2 } = alertStyles({ type, dense });
12773
+ const { base: base2 } = alertStyles({ type, dense, hasAction });
12728
12774
  return /* @__PURE__ */ import_react142.default.createElement(AlertContext.Provider, { value: { type, dense } }, /* @__PURE__ */ import_react142.default.createElement("div", { ...rest, role: type === "error" || type === "warning" ? "alert" : "status", className: base2({ className }) }, children));
12729
12775
  };
12730
12776
  var AlertTitle = ({ children, className, ...rest }) => {