@aivenio/aquarium 1.51.0 → 1.52.1

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
@@ -3590,6 +3590,22 @@ var require_people = __commonJS({
3590
3590
  }
3591
3591
  });
3592
3592
 
3593
+ // src/icons/performance.js
3594
+ var require_performance = __commonJS({
3595
+ "src/icons/performance.js"(exports) {
3596
+ "use strict";
3597
+ var data = {
3598
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.646 2-8.164 9.797c-.32.384-.48.576-.482.738-.002.14.06.275.17.363.126.102.376.102.875.102h6.685l-.917 7.333 8.164-9.797c.32-.384.48-.575.482-.737a.458.458 0 00-.17-.364c-.126-.102-.376-.102-.875-.102H10.73L11.646 2Z"/>',
3599
+ "left": 0,
3600
+ "top": 0,
3601
+ "width": 22,
3602
+ "height": 22
3603
+ };
3604
+ exports.__esModule = true;
3605
+ exports.default = data;
3606
+ }
3607
+ });
3608
+
3593
3609
  // src/icons/person.js
3594
3610
  var require_person = __commonJS({
3595
3611
  "src/icons/person.js"(exports) {
@@ -6162,6 +6178,7 @@ var import_package = __toESM(require_package());
6162
6178
  var import_paperclip = __toESM(require_paperclip());
6163
6179
  var import_pause = __toESM(require_pause());
6164
6180
  var import_people = __toESM(require_people());
6181
+ var import_performance = __toESM(require_performance());
6165
6182
  var import_person = __toESM(require_person());
6166
6183
  var import_phone = __toESM(require_phone());
6167
6184
  var import_pieChart = __toESM(require_pieChart());
@@ -7620,21 +7637,26 @@ var createBadge = (type, displayName) => {
7620
7637
  Component.Skeleton.displayName = `${displayName}.Skeleton`;
7621
7638
  return Component;
7622
7639
  };
7623
- var NotificationBadge = ({ children, top = "-2px", right = "-2px" }) => {
7624
- return /* @__PURE__ */ import_react26.default.createElement("div", {
7625
- className: tw("relative inline-flex")
7626
- }, children, /* @__PURE__ */ import_react26.default.createElement("span", {
7640
+ var NotificationBadge = (_a) => {
7641
+ var _b = _a, { children, top = "-2px", right = "-2px" } = _b, props = __objRest(_b, ["children", "top", "right"]);
7642
+ return /* @__PURE__ */ import_react26.default.createElement("div", __spreadValues({
7643
+ className: classNames("Aquarium-Badge.Notification", tw("relative inline-flex"))
7644
+ }, props), children, /* @__PURE__ */ import_react26.default.createElement("span", {
7627
7645
  style: { top, right },
7628
7646
  className: tw("absolute rounded-full w-[6px] h-[6px] bg-error-70")
7629
7647
  }));
7630
7648
  };
7631
- var DotBadge = ({ dense = false }) => {
7632
- return /* @__PURE__ */ import_react26.default.createElement("span", {
7633
- className: tw("rounded-full bg-current", {
7634
- "w-[6px] h-[6px]": dense,
7635
- "w-[9px] h-[9px]": !dense
7636
- })
7637
- });
7649
+ var DotBadge = (_a) => {
7650
+ var _b = _a, { dense = false } = _b, props = __objRest(_b, ["dense"]);
7651
+ return /* @__PURE__ */ import_react26.default.createElement("span", __spreadValues({
7652
+ className: classNames(
7653
+ "Aquarium-Badge.Dot",
7654
+ tw("rounded-full bg-current", {
7655
+ "w-[6px] h-[6px]": dense,
7656
+ "w-[9px] h-[9px]": !dense
7657
+ })
7658
+ )
7659
+ }, props));
7638
7660
  };
7639
7661
  var Badge = createBadge("default", "Badge");
7640
7662
  Badge.Notification = NotificationBadge;
@@ -7684,7 +7706,7 @@ Banner3.Title = (_a) => {
7684
7706
  color: "grey-100",
7685
7707
  className: classNames(
7686
7708
  className,
7687
- tw("whitespace-nowrap", {
7709
+ tw({
7688
7710
  "mb-3": layout === "vertical"
7689
7711
  })
7690
7712
  )
@@ -10362,10 +10384,10 @@ var TableSortCell = (_a) => {
10362
10384
  })
10363
10385
  }, /* @__PURE__ */ import_react64.default.createElement(InlineIcon, {
10364
10386
  icon: import_chevronUp3.default,
10365
- className: getSortCellIconClassNames(direction === "descending")
10387
+ className: getSortCellIconClassNames(direction === "ascending")
10366
10388
  }), /* @__PURE__ */ import_react64.default.createElement(InlineIcon, {
10367
10389
  icon: import_chevronDown4.default,
10368
- className: getSortCellIconClassNames(direction === "ascending")
10390
+ className: getSortCellIconClassNames(direction === "descending")
10369
10391
  }))));
10370
10392
  };
10371
10393
  var Caption = ({ children }) => /* @__PURE__ */ import_react64.default.createElement(Typography2.Caption, {
@@ -10482,10 +10504,10 @@ var SortCell = (_a) => {
10482
10504
  })
10483
10505
  }, /* @__PURE__ */ import_react65.default.createElement(InlineIcon, {
10484
10506
  icon: import_chevronUp4.default,
10485
- className: getSortCellIconClassNames(direction === "descending")
10507
+ className: getSortCellIconClassNames(direction === "ascending")
10486
10508
  }), /* @__PURE__ */ import_react65.default.createElement(InlineIcon, {
10487
10509
  icon: import_chevronDown5.default,
10488
- className: getSortCellIconClassNames(direction === "ascending")
10510
+ className: getSortCellIconClassNames(direction === "descending")
10489
10511
  }))));
10490
10512
  };
10491
10513
  DataList.HeadCell = HeadCell;
@@ -11766,7 +11788,33 @@ var Drawer = (_a) => {
11766
11788
  };
11767
11789
  var DrawerWrapper = import_react79.default.forwardRef(
11768
11790
  (_a, ref) => {
11769
- var _b = _a, { title, children, size = "sm", primaryAction, secondaryActions, onClose, spring } = _b, props = __objRest(_b, ["title", "children", "size", "primaryAction", "secondaryActions", "onClose", "spring"]);
11791
+ var _b = _a, {
11792
+ title,
11793
+ children,
11794
+ size = "sm",
11795
+ primaryAction,
11796
+ secondaryActions,
11797
+ onClose,
11798
+ spring,
11799
+ onAction,
11800
+ menu,
11801
+ onMenuOpenChange,
11802
+ menuLabel,
11803
+ menuAriaLabel
11804
+ } = _b, props = __objRest(_b, [
11805
+ "title",
11806
+ "children",
11807
+ "size",
11808
+ "primaryAction",
11809
+ "secondaryActions",
11810
+ "onClose",
11811
+ "spring",
11812
+ "onAction",
11813
+ "menu",
11814
+ "onMenuOpenChange",
11815
+ "menuLabel",
11816
+ "menuAriaLabel"
11817
+ ]);
11770
11818
  var _a2;
11771
11819
  const labelledBy = (0, import_utils16.useId)();
11772
11820
  const describedBy = (0, import_utils16.useId)();
@@ -11800,18 +11848,15 @@ var DrawerWrapper = import_react79.default.forwardRef(
11800
11848
  noFooter: !(secondaryActions || primaryAction)
11801
11849
  }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ import_react79.default.createElement(Modal.Footer, null, /* @__PURE__ */ import_react79.default.createElement(Modal.Actions, {
11802
11850
  className: size === "sm" ? tw("flex-col") : void 0
11803
- }, size !== "sm" && props.menu && /* @__PURE__ */ import_react79.default.createElement(Box.Flex, {
11851
+ }, size !== "sm" && menu && /* @__PURE__ */ import_react79.default.createElement(Box.Flex, {
11804
11852
  alignItems: "center"
11805
11853
  }, /* @__PURE__ */ import_react79.default.createElement(DropdownMenu2, {
11806
- onAction: (action) => {
11807
- var _a3;
11808
- return (_a3 = props.onAction) == null ? void 0 : _a3.call(props, action);
11809
- },
11810
- onOpenChange: props.onMenuOpenChange
11854
+ onAction: (action) => onAction == null ? void 0 : onAction(action),
11855
+ onOpenChange: onMenuOpenChange
11811
11856
  }, /* @__PURE__ */ import_react79.default.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ import_react79.default.createElement(Button.Icon, {
11812
- "aria-label": (_a2 = props.menuAriaLabel) != null ? _a2 : "Context menu",
11857
+ "aria-label": (_a2 = menuAriaLabel != null ? menuAriaLabel : menuLabel) != null ? _a2 : "Context menu",
11813
11858
  icon: import_more4.default
11814
- })), props.menu)), secondaryActions && (0, import_castArray.default)(secondaryActions).filter(Boolean).map((_b2) => {
11859
+ })), menu)), secondaryActions && (0, import_castArray.default)(secondaryActions).filter(Boolean).map((_b2) => {
11815
11860
  var _c = _b2, { text } = _c, action = __objRest(_c, ["text"]);
11816
11861
  return /* @__PURE__ */ import_react79.default.createElement(Button.Secondary, __spreadValues({
11817
11862
  key: text
package/dist/system.mjs CHANGED
@@ -3588,6 +3588,22 @@ var require_people = __commonJS({
3588
3588
  }
3589
3589
  });
3590
3590
 
3591
+ // src/icons/performance.js
3592
+ var require_performance = __commonJS({
3593
+ "src/icons/performance.js"(exports) {
3594
+ "use strict";
3595
+ var data = {
3596
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.646 2-8.164 9.797c-.32.384-.48.576-.482.738-.002.14.06.275.17.363.126.102.376.102.875.102h6.685l-.917 7.333 8.164-9.797c.32-.384.48-.575.482-.737a.458.458 0 00-.17-.364c-.126-.102-.376-.102-.875-.102H10.73L11.646 2Z"/>',
3597
+ "left": 0,
3598
+ "top": 0,
3599
+ "width": 22,
3600
+ "height": 22
3601
+ };
3602
+ exports.__esModule = true;
3603
+ exports.default = data;
3604
+ }
3605
+ });
3606
+
3591
3607
  // src/icons/person.js
3592
3608
  var require_person = __commonJS({
3593
3609
  "src/icons/person.js"(exports) {
@@ -6016,6 +6032,7 @@ var import_package = __toESM(require_package());
6016
6032
  var import_paperclip = __toESM(require_paperclip());
6017
6033
  var import_pause = __toESM(require_pause());
6018
6034
  var import_people = __toESM(require_people());
6035
+ var import_performance = __toESM(require_performance());
6019
6036
  var import_person = __toESM(require_person());
6020
6037
  var import_phone = __toESM(require_phone());
6021
6038
  var import_pieChart = __toESM(require_pieChart());
@@ -7474,21 +7491,26 @@ var createBadge = (type, displayName) => {
7474
7491
  Component.Skeleton.displayName = `${displayName}.Skeleton`;
7475
7492
  return Component;
7476
7493
  };
7477
- var NotificationBadge = ({ children, top = "-2px", right = "-2px" }) => {
7478
- return /* @__PURE__ */ React22.createElement("div", {
7479
- className: tw("relative inline-flex")
7480
- }, children, /* @__PURE__ */ React22.createElement("span", {
7494
+ var NotificationBadge = (_a) => {
7495
+ var _b = _a, { children, top = "-2px", right = "-2px" } = _b, props = __objRest(_b, ["children", "top", "right"]);
7496
+ return /* @__PURE__ */ React22.createElement("div", __spreadValues({
7497
+ className: classNames("Aquarium-Badge.Notification", tw("relative inline-flex"))
7498
+ }, props), children, /* @__PURE__ */ React22.createElement("span", {
7481
7499
  style: { top, right },
7482
7500
  className: tw("absolute rounded-full w-[6px] h-[6px] bg-error-70")
7483
7501
  }));
7484
7502
  };
7485
- var DotBadge = ({ dense = false }) => {
7486
- return /* @__PURE__ */ React22.createElement("span", {
7487
- className: tw("rounded-full bg-current", {
7488
- "w-[6px] h-[6px]": dense,
7489
- "w-[9px] h-[9px]": !dense
7490
- })
7491
- });
7503
+ var DotBadge = (_a) => {
7504
+ var _b = _a, { dense = false } = _b, props = __objRest(_b, ["dense"]);
7505
+ return /* @__PURE__ */ React22.createElement("span", __spreadValues({
7506
+ className: classNames(
7507
+ "Aquarium-Badge.Dot",
7508
+ tw("rounded-full bg-current", {
7509
+ "w-[6px] h-[6px]": dense,
7510
+ "w-[9px] h-[9px]": !dense
7511
+ })
7512
+ )
7513
+ }, props));
7492
7514
  };
7493
7515
  var Badge = createBadge("default", "Badge");
7494
7516
  Badge.Notification = NotificationBadge;
@@ -7538,7 +7560,7 @@ Banner3.Title = (_a) => {
7538
7560
  color: "grey-100",
7539
7561
  className: classNames(
7540
7562
  className,
7541
- tw("whitespace-nowrap", {
7563
+ tw({
7542
7564
  "mb-3": layout === "vertical"
7543
7565
  })
7544
7566
  )
@@ -10216,10 +10238,10 @@ var TableSortCell = (_a) => {
10216
10238
  })
10217
10239
  }, /* @__PURE__ */ React58.createElement(InlineIcon, {
10218
10240
  icon: import_chevronUp3.default,
10219
- className: getSortCellIconClassNames(direction === "descending")
10241
+ className: getSortCellIconClassNames(direction === "ascending")
10220
10242
  }), /* @__PURE__ */ React58.createElement(InlineIcon, {
10221
10243
  icon: import_chevronDown4.default,
10222
- className: getSortCellIconClassNames(direction === "ascending")
10244
+ className: getSortCellIconClassNames(direction === "descending")
10223
10245
  }))));
10224
10246
  };
10225
10247
  var Caption = ({ children }) => /* @__PURE__ */ React58.createElement(Typography2.Caption, {
@@ -10336,10 +10358,10 @@ var SortCell = (_a) => {
10336
10358
  })
10337
10359
  }, /* @__PURE__ */ React59.createElement(InlineIcon, {
10338
10360
  icon: import_chevronUp4.default,
10339
- className: getSortCellIconClassNames(direction === "descending")
10361
+ className: getSortCellIconClassNames(direction === "ascending")
10340
10362
  }), /* @__PURE__ */ React59.createElement(InlineIcon, {
10341
10363
  icon: import_chevronDown5.default,
10342
- className: getSortCellIconClassNames(direction === "ascending")
10364
+ className: getSortCellIconClassNames(direction === "descending")
10343
10365
  }))));
10344
10366
  };
10345
10367
  DataList.HeadCell = HeadCell;
@@ -11620,7 +11642,33 @@ var Drawer = (_a) => {
11620
11642
  };
11621
11643
  var DrawerWrapper = React72.forwardRef(
11622
11644
  (_a, ref) => {
11623
- var _b = _a, { title, children, size = "sm", primaryAction, secondaryActions, onClose, spring } = _b, props = __objRest(_b, ["title", "children", "size", "primaryAction", "secondaryActions", "onClose", "spring"]);
11645
+ var _b = _a, {
11646
+ title,
11647
+ children,
11648
+ size = "sm",
11649
+ primaryAction,
11650
+ secondaryActions,
11651
+ onClose,
11652
+ spring,
11653
+ onAction,
11654
+ menu,
11655
+ onMenuOpenChange,
11656
+ menuLabel,
11657
+ menuAriaLabel
11658
+ } = _b, props = __objRest(_b, [
11659
+ "title",
11660
+ "children",
11661
+ "size",
11662
+ "primaryAction",
11663
+ "secondaryActions",
11664
+ "onClose",
11665
+ "spring",
11666
+ "onAction",
11667
+ "menu",
11668
+ "onMenuOpenChange",
11669
+ "menuLabel",
11670
+ "menuAriaLabel"
11671
+ ]);
11624
11672
  var _a2;
11625
11673
  const labelledBy = useId9();
11626
11674
  const describedBy = useId9();
@@ -11654,18 +11702,15 @@ var DrawerWrapper = React72.forwardRef(
11654
11702
  noFooter: !(secondaryActions || primaryAction)
11655
11703
  }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React72.createElement(Modal.Footer, null, /* @__PURE__ */ React72.createElement(Modal.Actions, {
11656
11704
  className: size === "sm" ? tw("flex-col") : void 0
11657
- }, size !== "sm" && props.menu && /* @__PURE__ */ React72.createElement(Box.Flex, {
11705
+ }, size !== "sm" && menu && /* @__PURE__ */ React72.createElement(Box.Flex, {
11658
11706
  alignItems: "center"
11659
11707
  }, /* @__PURE__ */ React72.createElement(DropdownMenu2, {
11660
- onAction: (action) => {
11661
- var _a3;
11662
- return (_a3 = props.onAction) == null ? void 0 : _a3.call(props, action);
11663
- },
11664
- onOpenChange: props.onMenuOpenChange
11708
+ onAction: (action) => onAction == null ? void 0 : onAction(action),
11709
+ onOpenChange: onMenuOpenChange
11665
11710
  }, /* @__PURE__ */ React72.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React72.createElement(Button.Icon, {
11666
- "aria-label": (_a2 = props.menuAriaLabel) != null ? _a2 : "Context menu",
11711
+ "aria-label": (_a2 = menuAriaLabel != null ? menuAriaLabel : menuLabel) != null ? _a2 : "Context menu",
11667
11712
  icon: import_more4.default
11668
- })), props.menu)), secondaryActions && castArray(secondaryActions).filter(Boolean).map((_b2) => {
11713
+ })), menu)), secondaryActions && castArray(secondaryActions).filter(Boolean).map((_b2) => {
11669
11714
  var _c = _b2, { text } = _c, action = __objRest(_c, ["text"]);
11670
11715
  return /* @__PURE__ */ React72.createElement(Button.Secondary, __spreadValues({
11671
11716
  key: text