@aivenio/aquarium 1.76.1 → 1.76.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/system.cjs CHANGED
@@ -4582,7 +4582,7 @@ var Menu = import_react3.default.forwardRef(
4582
4582
  return /* @__PURE__ */ import_react3.default.createElement("ul", __spreadValues({
4583
4583
  ref,
4584
4584
  style: { maxHeight },
4585
- className: classNames(className, tw("text-default"))
4585
+ className: classNames(className, tw("text-default bg-body"))
4586
4586
  }, props), children);
4587
4587
  }
4588
4588
  );
@@ -7022,8 +7022,8 @@ var Arrow = (props) => {
7022
7022
  var getCommonInputStyles = ({ readOnly, valid }) => tw(
7023
7023
  "block w-full rounded-sm disabled:cursor-not-allowed disabled:border-default disabled:bg-default typography-small text-default disabled:text-inactive placeholder:text-inactive focus:outline-none",
7024
7024
  {
7025
- "px-3 py-3": !readOnly,
7026
- "border-none resize-none cursor-default": readOnly,
7025
+ "px-3 py-3 bg-body": !readOnly,
7026
+ "border-none resize-none cursor-default bg-transparent": readOnly,
7027
7027
  "border border-danger-default": !valid && !readOnly,
7028
7028
  "border border-default hover:border-intense focus:border-info-default": valid && !readOnly
7029
7029
  }
@@ -7044,14 +7044,14 @@ var import_chevronDown3 = __toESM(require_chevronDown());
7044
7044
  var import_loading2 = __toESM(require_loading());
7045
7045
  var COLOR_CLASSNAMES = {
7046
7046
  "primary": tw(
7047
- "text-white bg-primary-default active:bg-primary-intense active:ring-0 focus-visible:ring-2 focus-visible:ring-primary-100 focus-visible:ring-inset hover:bg-primary-intense disabled:bg-primary-muted"
7047
+ "text-white bg-primary-default active:bg-primary-intense active:ring-0 focus-visible:ring-2 focus-visible:ring-primary-intense focus-visible:ring-inset hover:bg-primary-intense disabled:bg-primary-muted"
7048
7048
  ),
7049
7049
  "secondary": tw(
7050
- "text-primary-intense bg-body ring-1 ring-primary-80 ring-inset",
7051
- "active:bg-primary-active active:ring-primary-90 active:text-primary-intense",
7052
- "focus-visible:ring-2 focus-visible:ring-primary-90 focus-visible:text-primary-intense",
7053
- "hover:bg-primary-hover hover:ring-primary-90 hover:text-primary-intense",
7054
- "disabled:bg-body disabled:text-primary-inactive disabled:ring-primary-40"
7050
+ "text-primary-intense bg-transparent ring-1 ring-primary-default ring-inset",
7051
+ "active:bg-primary-active active:ring-primary-default active:text-primary-intense",
7052
+ "focus-visible:ring-2 focus-visible:ring-primary-default focus-visible:text-primary-intense",
7053
+ "hover:bg-primary-hover hover:ring-primary-default hover:text-primary-intense",
7054
+ "disabled:bg-body disabled:text-primary-inactive disabled:ring-primary-muted"
7055
7055
  ),
7056
7056
  "ghost": ghostButtonStyle,
7057
7057
  "text": linkStyle,
@@ -8182,8 +8182,8 @@ Banner.Dismiss = (_a) => {
8182
8182
  };
8183
8183
  Banner.Dismiss.displayName = "Alert.Banner.Dismiss";
8184
8184
  var ILLUSTRATION_COLORS = {
8185
- information: { stroke: tw("stroke-primary-60"), fill: tw("fill-primary-10") },
8186
- success: { stroke: tw("stroke-success-40"), fill: tw("fill-success-10") },
8185
+ information: { stroke: tw("stroke-primary-muted"), fill: tw("fill-primary-10") },
8186
+ success: { stroke: tw("stroke-success-default"), fill: tw("fill-success-10") },
8187
8187
  warning: { stroke: tw("stroke-warning-100"), fill: tw("fill-warning-20") },
8188
8188
  error: { stroke: tw("stroke-error-100"), fill: tw("fill-error-10") }
8189
8189
  };
@@ -8950,7 +8950,7 @@ var Checkbox = import_react39.default.forwardRef(
8950
8950
  name
8951
8951
  }, props), {
8952
8952
  className: classNames(
8953
- tw("peer appearance-none outline-none w-5 h-5", "rounded-sm border border-transparent", {
8953
+ tw("peer appearance-none outline-none w-5 h-5 rounded-sm border border-transparent", {
8954
8954
  "cursor-pointer checked:bg-primary-default": !disabled,
8955
8955
  "cursor-not-allowed bg-muted checked:bg-primary-muted": disabled
8956
8956
  })
@@ -8968,7 +8968,7 @@ var Checkbox = import_react39.default.forwardRef(
8968
8968
  "rounded-sm border border-default peer-focus:border-info-default"
8969
8969
  ),
8970
8970
  {
8971
- "peer-hover:border-intense peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-default": !disabled,
8971
+ "border-default peer-hover:border-intense peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-default": !disabled,
8972
8972
  "border-muted peer-checked:text-primary-default peer-checked:[&>path]:stroke-primary-70 peer-checked:border-transparent": disabled
8973
8973
  }
8974
8974
  )
@@ -9471,7 +9471,7 @@ var Carousel = ({
9471
9471
  tabIndex: 0,
9472
9472
  onScroll: handleScroll,
9473
9473
  className: tw(
9474
- "grid items-stretch grid-flow-col overflow-x-scroll scroll-smooth snap-x snap-mandatory scrollbar-hide focus-visible:outline-0 focus-visible:ring-1 focus-visible:ring-info-70"
9474
+ "grid items-stretch grid-flow-col overflow-x-scroll scroll-smooth snap-x snap-mandatory scrollbar-hide focus-visible:outline-0 focus-visible:ring-1 focus-visible:ring-info-default"
9475
9475
  ),
9476
9476
  style: { width }
9477
9477
  }, width !== 0 && import_react47.default.Children.map(children, (child, index) => /* @__PURE__ */ import_react47.default.createElement(CarouselItem, {
@@ -10525,8 +10525,6 @@ var createInput = (displayName, opts = {}) => {
10525
10525
  readOnly,
10526
10526
  className: classNames(
10527
10527
  {
10528
- "bg-body": !readOnly,
10529
- "bg-transparent": readOnly,
10530
10528
  "[&::-webkit-search-cancel-button]:appearance-none": opts.isSearch,
10531
10529
  "pl-7": opts.adornment,
10532
10530
  "pr-7": opts.canReset || endAdornment
@@ -11517,10 +11515,13 @@ function isOnSortChangedDirection(value) {
11517
11515
 
11518
11516
  // src/utils/table/useTableSort.tsx
11519
11517
  var import_react72 = __toESM(require("react"));
11520
- var getDefaultSort = (props) => "defaultSort" in props ? props.defaultSort : "column" in props && "direction" in props && Object.keys(props).length === 2 ? { column: props.column, direction: props.direction } : void 0;
11521
- var useTableSort = (props) => {
11522
- const onSortChanged = props && "onSortChanged" in props ? props.onSortChanged : void 0;
11523
- const [sort, setSort] = import_react72.default.useState(props && getDefaultSort(props));
11518
+ var useTableSort = ({
11519
+ column,
11520
+ direction,
11521
+ onSortChanged
11522
+ } = {}) => {
11523
+ const defaultSort = column ? { column, direction } : void 0;
11524
+ const [sort, setSort] = import_react72.default.useState(defaultSort);
11524
11525
  const setSortAndEmitOnSortChangedEvent = (sort2) => {
11525
11526
  setSort(sort2);
11526
11527
  if (onSortChanged) {
@@ -11531,15 +11532,15 @@ var useTableSort = (props) => {
11531
11532
  }
11532
11533
  }
11533
11534
  };
11534
- const handleSortClick = (column) => {
11535
- if (sort && sort.column.headerName === column.headerName) {
11535
+ const handleSortClick = (column2) => {
11536
+ if (sort && sort.column.headerName === column2.headerName) {
11536
11537
  if (sort.direction === "ascending") {
11537
- setSortAndEmitOnSortChangedEvent({ column, direction: "descending" });
11538
+ setSortAndEmitOnSortChangedEvent({ column: column2, direction: "descending" });
11538
11539
  } else {
11539
11540
  setSortAndEmitOnSortChangedEvent(void 0);
11540
11541
  }
11541
11542
  } else {
11542
- setSortAndEmitOnSortChangedEvent({ column, direction: "ascending" });
11543
+ setSortAndEmitOnSortChangedEvent({ column: column2, direction: "ascending" });
11543
11544
  }
11544
11545
  };
11545
11546
  return [sort, handleSortClick];
@@ -11587,7 +11588,7 @@ var DropdownMenu = import_react73.default.forwardRef(
11587
11588
  style: { minHeight, maxHeight, minWidth, maxWidth },
11588
11589
  className: classNames(
11589
11590
  className,
11590
- "bg-popover-content w-full flex flex-col overflow-x-hidden typography-small text-default"
11591
+ "Aquarium-DropdownMenu.Menu bg-popover-content w-full flex flex-col overflow-x-hidden typography-small text-default"
11591
11592
  )
11592
11593
  }, props), children);
11593
11594
  }
@@ -11612,7 +11613,10 @@ var Group2 = import_react73.default.forwardRef(
11612
11613
  return /* @__PURE__ */ import_react73.default.createElement("li", __spreadValues({
11613
11614
  ref
11614
11615
  }, props), title && /* @__PURE__ */ import_react73.default.createElement("div", __spreadValues({
11615
- className: classNames(className, "p-3 text-inactive uppercase cursor-default typography-caption")
11616
+ className: classNames(
11617
+ className,
11618
+ "Aquarium-DropdownMenu.Group p-3 text-inactive uppercase cursor-default typography-caption"
11619
+ )
11616
11620
  }, titleProps), title), children);
11617
11621
  }
11618
11622
  );
@@ -11622,7 +11626,7 @@ var Item3 = import_react73.default.forwardRef(
11622
11626
  var _b = _a, { kind, highlighted, selected, className, icon, showNotification = false, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "showNotification", "children"]);
11623
11627
  return /* @__PURE__ */ import_react73.default.createElement("li", __spreadValues({
11624
11628
  ref,
11625
- className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
11629
+ className: classNames(className, "Aquarium-DropdownMenu.Item flex items-center gap-x-3 p-3 outline-none", {
11626
11630
  "cursor-pointer hover:bg-muted": !props.disabled,
11627
11631
  "bg-muted": highlighted,
11628
11632
  "text-primary-intense": kind === "action" && !props.disabled,
@@ -12355,10 +12359,8 @@ var DataList2 = (_a) => {
12355
12359
  (value) => onSelectionChange == null ? void 0 : onSelectionChange(value != null ? value : [])
12356
12360
  );
12357
12361
  const defaultSortedColumn = columns.find((c) => c.headerName === (defaultSort == null ? void 0 : defaultSort.headerName));
12358
- const initialSortState = defaultSortedColumn ? { column: defaultSortedColumn, direction: (_a2 = defaultSort == null ? void 0 : defaultSort.direction) != null ? _a2 : "ascending" } : void 0;
12359
- const [sort, updateSort] = useTableSort(
12360
- onSortChanged ? __spreadProps(__spreadValues({}, initialSortState), { onSortChanged }) : initialSortState
12361
- );
12362
+ const initialSortState = defaultSortedColumn ? { column: defaultSortedColumn, direction: (_a2 = defaultSort == null ? void 0 : defaultSort.direction) != null ? _a2 : "ascending" } : {};
12363
+ const [sort, updateSort] = useTableSort(__spreadProps(__spreadValues({}, initialSortState), { onSortChanged }));
12362
12364
  const sortedRows = (0, import_isArray3.default)(rows) ? sortRowsBy(rows, sort) : [];
12363
12365
  const groups = areRowsGrouped(rows) ? rows : group ? (0, import_isFunction3.default)(group) ? group(sortedRows) : (0, import_groupBy2.default)(sortedRows, group) : void 0;
12364
12366
  const isCollapsible = (0, import_isFunction3.default)(rowDetails);
@@ -12638,10 +12640,8 @@ var DataTable = (_a) => {
12638
12640
  const hasStickyColumns = columns.some((column) => column.sticky);
12639
12641
  const stickyStyles = useScrollStyles({ containerRef, skip: !hasStickyColumns });
12640
12642
  const defaultSortedColumn = columns.find((c) => c.headerName === (defaultSort == null ? void 0 : defaultSort.headerName));
12641
- const initialSortState = defaultSortedColumn ? { column: defaultSortedColumn, direction: (_a2 = defaultSort == null ? void 0 : defaultSort.direction) != null ? _a2 : "ascending" } : void 0;
12642
- const [sort, updateSort] = useTableSort(
12643
- onSortChanged ? __spreadProps(__spreadValues({}, initialSortState), { onSortChanged }) : initialSortState
12644
- );
12643
+ const initialSortState = defaultSortedColumn ? { column: defaultSortedColumn, direction: (_a2 = defaultSort == null ? void 0 : defaultSort.direction) != null ? _a2 : "ascending" } : {};
12644
+ const [sort, updateSort] = useTableSort(__spreadProps(__spreadValues({}, initialSortState), { onSortChanged }));
12645
12645
  const sortedRows = sortRowsBy(rows, sort);
12646
12646
  const amountOfColumns = columns.length + (menu ? 1 : 0);
12647
12647
  const PaginationFooter = import_react83.default.useCallback(
@@ -12835,7 +12835,7 @@ var Modal = (_a) => {
12835
12835
  Modal.BackDrop = (_a) => {
12836
12836
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
12837
12837
  return /* @__PURE__ */ import_react84.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
12838
- className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-default opacity-80"), className)
12838
+ className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-body-intense opacity-70"), className)
12839
12839
  }));
12840
12840
  };
12841
12841
  Modal.Dialog = import_react84.default.forwardRef(
@@ -13667,11 +13667,14 @@ var DropdownItem = (_a) => {
13667
13667
  onClick: handleClick,
13668
13668
  onKeyDown: handleKeyDown
13669
13669
  }, props), {
13670
- className: tw("typography-small flex items-center focus:ring-0", {
13671
- "text-default cursor-pointer hover:bg-muted": !disabled,
13672
- "text-inactive cursor-not-allowed": disabled,
13673
- "text-primary-default hover:text-primary-intense": color === "danger" && !disabled
13674
- })
13670
+ className: classNames(
13671
+ "Aquarium-Dropdown.Item",
13672
+ tw("typography-small flex items-center focus:ring-0", {
13673
+ "text-default cursor-pointer hover:bg-muted": !disabled,
13674
+ "text-inactive cursor-not-allowed": disabled,
13675
+ "text-danger-default": color === "danger" && !disabled
13676
+ })
13677
+ )
13675
13678
  }), tooltip ? /* @__PURE__ */ import_react91.default.createElement(Tooltip, {
13676
13679
  content: tooltip,
13677
13680
  placement: tooltipPlacement,
@@ -15540,7 +15543,7 @@ var getBaseSegmentedControlClassNames = (selected) => tw(
15540
15543
  "disabled:cursor-not-allowed disabled:text-inactive disabled:bg-muted",
15541
15544
  {
15542
15545
  "typography-small text-default bg-body": !selected,
15543
- "typography-small-strong text-primary-intense relative z-40 ring-1 ring-offset-0 ring-primary-80": selected
15546
+ "typography-small-strong text-primary-intense relative z-40 ring-1 ring-offset-0 ring-primary-default": selected
15544
15547
  }
15545
15548
  );
15546
15549
 
package/dist/system.mjs CHANGED
@@ -4432,7 +4432,7 @@ var Menu = React2.forwardRef(
4432
4432
  return /* @__PURE__ */ React2.createElement("ul", __spreadValues({
4433
4433
  ref,
4434
4434
  style: { maxHeight },
4435
- className: classNames(className, tw("text-default"))
4435
+ className: classNames(className, tw("text-default bg-body"))
4436
4436
  }, props), children);
4437
4437
  }
4438
4438
  );
@@ -6872,8 +6872,8 @@ var Arrow = (props) => {
6872
6872
  var getCommonInputStyles = ({ readOnly, valid }) => tw(
6873
6873
  "block w-full rounded-sm disabled:cursor-not-allowed disabled:border-default disabled:bg-default typography-small text-default disabled:text-inactive placeholder:text-inactive focus:outline-none",
6874
6874
  {
6875
- "px-3 py-3": !readOnly,
6876
- "border-none resize-none cursor-default": readOnly,
6875
+ "px-3 py-3 bg-body": !readOnly,
6876
+ "border-none resize-none cursor-default bg-transparent": readOnly,
6877
6877
  "border border-danger-default": !valid && !readOnly,
6878
6878
  "border border-default hover:border-intense focus:border-info-default": valid && !readOnly
6879
6879
  }
@@ -6894,14 +6894,14 @@ var import_chevronDown3 = __toESM(require_chevronDown());
6894
6894
  var import_loading2 = __toESM(require_loading());
6895
6895
  var COLOR_CLASSNAMES = {
6896
6896
  "primary": tw(
6897
- "text-white bg-primary-default active:bg-primary-intense active:ring-0 focus-visible:ring-2 focus-visible:ring-primary-100 focus-visible:ring-inset hover:bg-primary-intense disabled:bg-primary-muted"
6897
+ "text-white bg-primary-default active:bg-primary-intense active:ring-0 focus-visible:ring-2 focus-visible:ring-primary-intense focus-visible:ring-inset hover:bg-primary-intense disabled:bg-primary-muted"
6898
6898
  ),
6899
6899
  "secondary": tw(
6900
- "text-primary-intense bg-body ring-1 ring-primary-80 ring-inset",
6901
- "active:bg-primary-active active:ring-primary-90 active:text-primary-intense",
6902
- "focus-visible:ring-2 focus-visible:ring-primary-90 focus-visible:text-primary-intense",
6903
- "hover:bg-primary-hover hover:ring-primary-90 hover:text-primary-intense",
6904
- "disabled:bg-body disabled:text-primary-inactive disabled:ring-primary-40"
6900
+ "text-primary-intense bg-transparent ring-1 ring-primary-default ring-inset",
6901
+ "active:bg-primary-active active:ring-primary-default active:text-primary-intense",
6902
+ "focus-visible:ring-2 focus-visible:ring-primary-default focus-visible:text-primary-intense",
6903
+ "hover:bg-primary-hover hover:ring-primary-default hover:text-primary-intense",
6904
+ "disabled:bg-body disabled:text-primary-inactive disabled:ring-primary-muted"
6905
6905
  ),
6906
6906
  "ghost": ghostButtonStyle,
6907
6907
  "text": linkStyle,
@@ -8032,8 +8032,8 @@ Banner.Dismiss = (_a) => {
8032
8032
  };
8033
8033
  Banner.Dismiss.displayName = "Alert.Banner.Dismiss";
8034
8034
  var ILLUSTRATION_COLORS = {
8035
- information: { stroke: tw("stroke-primary-60"), fill: tw("fill-primary-10") },
8036
- success: { stroke: tw("stroke-success-40"), fill: tw("fill-success-10") },
8035
+ information: { stroke: tw("stroke-primary-muted"), fill: tw("fill-primary-10") },
8036
+ success: { stroke: tw("stroke-success-default"), fill: tw("fill-success-10") },
8037
8037
  warning: { stroke: tw("stroke-warning-100"), fill: tw("fill-warning-20") },
8038
8038
  error: { stroke: tw("stroke-error-100"), fill: tw("fill-error-10") }
8039
8039
  };
@@ -8800,7 +8800,7 @@ var Checkbox = React33.forwardRef(
8800
8800
  name
8801
8801
  }, props), {
8802
8802
  className: classNames(
8803
- tw("peer appearance-none outline-none w-5 h-5", "rounded-sm border border-transparent", {
8803
+ tw("peer appearance-none outline-none w-5 h-5 rounded-sm border border-transparent", {
8804
8804
  "cursor-pointer checked:bg-primary-default": !disabled,
8805
8805
  "cursor-not-allowed bg-muted checked:bg-primary-muted": disabled
8806
8806
  })
@@ -8818,7 +8818,7 @@ var Checkbox = React33.forwardRef(
8818
8818
  "rounded-sm border border-default peer-focus:border-info-default"
8819
8819
  ),
8820
8820
  {
8821
- "peer-hover:border-intense peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-default": !disabled,
8821
+ "border-default peer-hover:border-intense peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-default": !disabled,
8822
8822
  "border-muted peer-checked:text-primary-default peer-checked:[&>path]:stroke-primary-70 peer-checked:border-transparent": disabled
8823
8823
  }
8824
8824
  )
@@ -9321,7 +9321,7 @@ var Carousel = ({
9321
9321
  tabIndex: 0,
9322
9322
  onScroll: handleScroll,
9323
9323
  className: tw(
9324
- "grid items-stretch grid-flow-col overflow-x-scroll scroll-smooth snap-x snap-mandatory scrollbar-hide focus-visible:outline-0 focus-visible:ring-1 focus-visible:ring-info-70"
9324
+ "grid items-stretch grid-flow-col overflow-x-scroll scroll-smooth snap-x snap-mandatory scrollbar-hide focus-visible:outline-0 focus-visible:ring-1 focus-visible:ring-info-default"
9325
9325
  ),
9326
9326
  style: { width }
9327
9327
  }, width !== 0 && React41.Children.map(children, (child, index) => /* @__PURE__ */ React41.createElement(CarouselItem, {
@@ -10375,8 +10375,6 @@ var createInput = (displayName, opts = {}) => {
10375
10375
  readOnly,
10376
10376
  className: classNames(
10377
10377
  {
10378
- "bg-body": !readOnly,
10379
- "bg-transparent": readOnly,
10380
10378
  "[&::-webkit-search-cancel-button]:appearance-none": opts.isSearch,
10381
10379
  "pl-7": opts.adornment,
10382
10380
  "pr-7": opts.canReset || endAdornment
@@ -11367,10 +11365,13 @@ function isOnSortChangedDirection(value) {
11367
11365
 
11368
11366
  // src/utils/table/useTableSort.tsx
11369
11367
  import React65 from "react";
11370
- var getDefaultSort = (props) => "defaultSort" in props ? props.defaultSort : "column" in props && "direction" in props && Object.keys(props).length === 2 ? { column: props.column, direction: props.direction } : void 0;
11371
- var useTableSort = (props) => {
11372
- const onSortChanged = props && "onSortChanged" in props ? props.onSortChanged : void 0;
11373
- const [sort, setSort] = React65.useState(props && getDefaultSort(props));
11368
+ var useTableSort = ({
11369
+ column,
11370
+ direction,
11371
+ onSortChanged
11372
+ } = {}) => {
11373
+ const defaultSort = column ? { column, direction } : void 0;
11374
+ const [sort, setSort] = React65.useState(defaultSort);
11374
11375
  const setSortAndEmitOnSortChangedEvent = (sort2) => {
11375
11376
  setSort(sort2);
11376
11377
  if (onSortChanged) {
@@ -11381,15 +11382,15 @@ var useTableSort = (props) => {
11381
11382
  }
11382
11383
  }
11383
11384
  };
11384
- const handleSortClick = (column) => {
11385
- if (sort && sort.column.headerName === column.headerName) {
11385
+ const handleSortClick = (column2) => {
11386
+ if (sort && sort.column.headerName === column2.headerName) {
11386
11387
  if (sort.direction === "ascending") {
11387
- setSortAndEmitOnSortChangedEvent({ column, direction: "descending" });
11388
+ setSortAndEmitOnSortChangedEvent({ column: column2, direction: "descending" });
11388
11389
  } else {
11389
11390
  setSortAndEmitOnSortChangedEvent(void 0);
11390
11391
  }
11391
11392
  } else {
11392
- setSortAndEmitOnSortChangedEvent({ column, direction: "ascending" });
11393
+ setSortAndEmitOnSortChangedEvent({ column: column2, direction: "ascending" });
11393
11394
  }
11394
11395
  };
11395
11396
  return [sort, handleSortClick];
@@ -11437,7 +11438,7 @@ var DropdownMenu = React66.forwardRef(
11437
11438
  style: { minHeight, maxHeight, minWidth, maxWidth },
11438
11439
  className: classNames(
11439
11440
  className,
11440
- "bg-popover-content w-full flex flex-col overflow-x-hidden typography-small text-default"
11441
+ "Aquarium-DropdownMenu.Menu bg-popover-content w-full flex flex-col overflow-x-hidden typography-small text-default"
11441
11442
  )
11442
11443
  }, props), children);
11443
11444
  }
@@ -11462,7 +11463,10 @@ var Group2 = React66.forwardRef(
11462
11463
  return /* @__PURE__ */ React66.createElement("li", __spreadValues({
11463
11464
  ref
11464
11465
  }, props), title && /* @__PURE__ */ React66.createElement("div", __spreadValues({
11465
- className: classNames(className, "p-3 text-inactive uppercase cursor-default typography-caption")
11466
+ className: classNames(
11467
+ className,
11468
+ "Aquarium-DropdownMenu.Group p-3 text-inactive uppercase cursor-default typography-caption"
11469
+ )
11466
11470
  }, titleProps), title), children);
11467
11471
  }
11468
11472
  );
@@ -11472,7 +11476,7 @@ var Item3 = React66.forwardRef(
11472
11476
  var _b = _a, { kind, highlighted, selected, className, icon, showNotification = false, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "showNotification", "children"]);
11473
11477
  return /* @__PURE__ */ React66.createElement("li", __spreadValues({
11474
11478
  ref,
11475
- className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
11479
+ className: classNames(className, "Aquarium-DropdownMenu.Item flex items-center gap-x-3 p-3 outline-none", {
11476
11480
  "cursor-pointer hover:bg-muted": !props.disabled,
11477
11481
  "bg-muted": highlighted,
11478
11482
  "text-primary-intense": kind === "action" && !props.disabled,
@@ -12205,10 +12209,8 @@ var DataList2 = (_a) => {
12205
12209
  (value) => onSelectionChange == null ? void 0 : onSelectionChange(value != null ? value : [])
12206
12210
  );
12207
12211
  const defaultSortedColumn = columns.find((c) => c.headerName === (defaultSort == null ? void 0 : defaultSort.headerName));
12208
- const initialSortState = defaultSortedColumn ? { column: defaultSortedColumn, direction: (_a2 = defaultSort == null ? void 0 : defaultSort.direction) != null ? _a2 : "ascending" } : void 0;
12209
- const [sort, updateSort] = useTableSort(
12210
- onSortChanged ? __spreadProps(__spreadValues({}, initialSortState), { onSortChanged }) : initialSortState
12211
- );
12212
+ const initialSortState = defaultSortedColumn ? { column: defaultSortedColumn, direction: (_a2 = defaultSort == null ? void 0 : defaultSort.direction) != null ? _a2 : "ascending" } : {};
12213
+ const [sort, updateSort] = useTableSort(__spreadProps(__spreadValues({}, initialSortState), { onSortChanged }));
12212
12214
  const sortedRows = isArray3(rows) ? sortRowsBy(rows, sort) : [];
12213
12215
  const groups = areRowsGrouped(rows) ? rows : group ? isFunction3(group) ? group(sortedRows) : groupBy2(sortedRows, group) : void 0;
12214
12216
  const isCollapsible = isFunction3(rowDetails);
@@ -12488,10 +12490,8 @@ var DataTable = (_a) => {
12488
12490
  const hasStickyColumns = columns.some((column) => column.sticky);
12489
12491
  const stickyStyles = useScrollStyles({ containerRef, skip: !hasStickyColumns });
12490
12492
  const defaultSortedColumn = columns.find((c) => c.headerName === (defaultSort == null ? void 0 : defaultSort.headerName));
12491
- const initialSortState = defaultSortedColumn ? { column: defaultSortedColumn, direction: (_a2 = defaultSort == null ? void 0 : defaultSort.direction) != null ? _a2 : "ascending" } : void 0;
12492
- const [sort, updateSort] = useTableSort(
12493
- onSortChanged ? __spreadProps(__spreadValues({}, initialSortState), { onSortChanged }) : initialSortState
12494
- );
12493
+ const initialSortState = defaultSortedColumn ? { column: defaultSortedColumn, direction: (_a2 = defaultSort == null ? void 0 : defaultSort.direction) != null ? _a2 : "ascending" } : {};
12494
+ const [sort, updateSort] = useTableSort(__spreadProps(__spreadValues({}, initialSortState), { onSortChanged }));
12495
12495
  const sortedRows = sortRowsBy(rows, sort);
12496
12496
  const amountOfColumns = columns.length + (menu ? 1 : 0);
12497
12497
  const PaginationFooter = React75.useCallback(
@@ -12685,7 +12685,7 @@ var Modal = (_a) => {
12685
12685
  Modal.BackDrop = (_a) => {
12686
12686
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
12687
12687
  return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
12688
- className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-default opacity-80"), className)
12688
+ className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-body-intense opacity-70"), className)
12689
12689
  }));
12690
12690
  };
12691
12691
  Modal.Dialog = React76.forwardRef(
@@ -13517,11 +13517,14 @@ var DropdownItem = (_a) => {
13517
13517
  onClick: handleClick,
13518
13518
  onKeyDown: handleKeyDown
13519
13519
  }, props), {
13520
- className: tw("typography-small flex items-center focus:ring-0", {
13521
- "text-default cursor-pointer hover:bg-muted": !disabled,
13522
- "text-inactive cursor-not-allowed": disabled,
13523
- "text-primary-default hover:text-primary-intense": color === "danger" && !disabled
13524
- })
13520
+ className: classNames(
13521
+ "Aquarium-Dropdown.Item",
13522
+ tw("typography-small flex items-center focus:ring-0", {
13523
+ "text-default cursor-pointer hover:bg-muted": !disabled,
13524
+ "text-inactive cursor-not-allowed": disabled,
13525
+ "text-danger-default": color === "danger" && !disabled
13526
+ })
13527
+ )
13525
13528
  }), tooltip ? /* @__PURE__ */ React82.createElement(Tooltip, {
13526
13529
  content: tooltip,
13527
13530
  placement: tooltipPlacement,
@@ -15390,7 +15393,7 @@ var getBaseSegmentedControlClassNames = (selected) => tw(
15390
15393
  "disabled:cursor-not-allowed disabled:text-inactive disabled:bg-muted",
15391
15394
  {
15392
15395
  "typography-small text-default bg-body": !selected,
15393
- "typography-small-strong text-primary-intense relative z-40 ring-1 ring-offset-0 ring-primary-80": selected
15396
+ "typography-small-strong text-primary-intense relative z-40 ring-1 ring-offset-0 ring-primary-default": selected
15394
15397
  }
15395
15398
  );
15396
15399
 
@@ -53,6 +53,8 @@ module.exports = {
53
53
  extend: {
54
54
  backgroundColor,
55
55
  borderColor,
56
+ ringColor: borderColor,
57
+ stroke: borderColor,
56
58
  borderRadius,
57
59
  textColor,
58
60
  zIndex: {