@aivenio/aquarium 1.32.0 → 1.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/system.cjs CHANGED
@@ -4646,6 +4646,22 @@ var require_stopwatch = __commonJS({
4646
4646
  }
4647
4647
  });
4648
4648
 
4649
+ // src/icons/superadmin.js
4650
+ var require_superadmin = __commonJS({
4651
+ "src/icons/superadmin.js"(exports) {
4652
+ "use strict";
4653
+ var data = {
4654
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 14.208H6.875c-1.28 0-1.919 0-2.44.158a3.667 3.667 0 00-2.444 2.445c-.158.52-.158 1.16-.158 2.439M13.292 6.875a4.125 4.125 0 11-8.25 0 4.125 4.125 0 018.25 0Zm1.375 9.625 1.833 1.833 3.667-3.666"/>',
4655
+ "left": 0,
4656
+ "top": 0,
4657
+ "width": 22,
4658
+ "height": 22
4659
+ };
4660
+ exports.__esModule = true;
4661
+ exports.default = data;
4662
+ }
4663
+ });
4664
+
4649
4665
  // src/icons/swapHorizontal.js
4650
4666
  var require_swapHorizontal = __commonJS({
4651
4667
  "src/icons/swapHorizontal.js"(exports) {
@@ -6536,6 +6552,7 @@ var import_smallTick = __toESM(require_smallTick());
6536
6552
  var import_speedometer = __toESM(require_speedometer());
6537
6553
  var import_stop = __toESM(require_stop());
6538
6554
  var import_stopwatch = __toESM(require_stopwatch());
6555
+ var import_superadmin = __toESM(require_superadmin());
6539
6556
  var import_swapHorizontal = __toESM(require_swapHorizontal());
6540
6557
  var import_swapVertical = __toESM(require_swapVertical());
6541
6558
  var import_tag = __toESM(require_tag());
@@ -8786,10 +8803,13 @@ var LabelText = ({
8786
8803
  labelText,
8787
8804
  required,
8788
8805
  helpTooltip,
8789
- helpTooltipPlacement
8806
+ helpTooltipPlacement,
8807
+ description
8790
8808
  }) => {
8791
8809
  return /* @__PURE__ */ import_react46.default.createElement("span", {
8792
- className: tw("inline-flex items-center mb-2 typography-small-strong", {
8810
+ className: tw("block mb-2")
8811
+ }, /* @__PURE__ */ import_react46.default.createElement("span", {
8812
+ className: tw("inline-flex items-center typography-small-strong", {
8793
8813
  "text-grey-60": variant === "default",
8794
8814
  "text-error-50": variant === "error",
8795
8815
  "text-grey-40": variant === "disabled"
@@ -8805,7 +8825,9 @@ var LabelText = ({
8805
8825
  }, /* @__PURE__ */ import_react46.default.createElement(InlineIcon, {
8806
8826
  icon: import_questionMark2.default,
8807
8827
  "data-testid": "icon-info"
8808
- }))));
8828
+ })))), description && /* @__PURE__ */ import_react46.default.createElement("span", {
8829
+ className: tw("block text-grey-50 typography-caption mt-1")
8830
+ }, description));
8809
8831
  };
8810
8832
  var Label = (props) => {
8811
8833
  const _a = props, { id, htmlFor, labelText, labelProps: _b = {} } = _a, labelProps = __objRest(_b, []), { "data-testid": dataTestid, children } = _a;
@@ -8883,6 +8905,7 @@ var getLabelControlProps = (_a) => {
8883
8905
  } = _b, labelProps = __objRest(_c, []), {
8884
8906
  helpTooltip,
8885
8907
  helpTooltipPlacement,
8908
+ description,
8886
8909
  maxLength,
8887
8910
  error: error2,
8888
8911
  helperText,
@@ -8897,6 +8920,7 @@ var getLabelControlProps = (_a) => {
8897
8920
  labelProps,
8898
8921
  helpTooltip,
8899
8922
  helpTooltipPlacement,
8923
+ description,
8900
8924
  error: error2,
8901
8925
  helperText,
8902
8926
  maxLength,
@@ -9296,6 +9320,7 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ import_react
9296
9320
  marginLeft: "auto",
9297
9321
  marginRight: "auto",
9298
9322
  width: "full",
9323
+ height: "full",
9299
9324
  className: tw({
9300
9325
  "max-w-screen-xl": maxWidth === "xl",
9301
9326
  "max-w-screen-lg": maxWidth === "lg",
@@ -10512,7 +10537,9 @@ var DataList2 = ({
10512
10537
  rows: _rows,
10513
10538
  sticky,
10514
10539
  menu,
10515
- menuLabel = "Context menu",
10540
+ menuLabel,
10541
+ menuAriaLabel = menuLabel != null ? menuLabel : "Context menu",
10542
+ menuHeaderName = "Actions",
10516
10543
  onAction,
10517
10544
  onMenuOpenChange,
10518
10545
  pagination: _pagination
@@ -10542,8 +10569,8 @@ var DataList2 = ({
10542
10569
  }), column.headerName)
10543
10570
  ), menu && /* @__PURE__ */ import_react67.default.createElement(DataList.HeadCell, {
10544
10571
  align: "right",
10545
- "aria-label": menuLabel
10546
- }), /* @__PURE__ */ import_react67.default.createElement(List2, {
10572
+ "aria-label": menuAriaLabel
10573
+ }, menuHeaderName), /* @__PURE__ */ import_react67.default.createElement(List2, {
10547
10574
  items: rows,
10548
10575
  renderItem: (row, index) => /* @__PURE__ */ import_react67.default.createElement(DataList.Row, {
10549
10576
  key: row.id
@@ -10560,7 +10587,7 @@ var DataList2 = ({
10560
10587
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
10561
10588
  onOpenChange: onMenuOpenChange
10562
10589
  }, /* @__PURE__ */ import_react67.default.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ import_react67.default.createElement(Button.Icon, {
10563
- "aria-label": menuLabel,
10590
+ "aria-label": menuAriaLabel,
10564
10591
  icon: import_more2.default
10565
10592
  })), (0, import_isFunction.default)(menu) ? menu(row, index) : menu)))
10566
10593
  }));
@@ -10626,7 +10653,9 @@ var DataTable = (_a) => {
10626
10653
  layout = "auto",
10627
10654
  sticky,
10628
10655
  menu,
10629
- menuLabel = "Context menu",
10656
+ menuLabel,
10657
+ menuAriaLabel = menuLabel != null ? menuLabel : "Context menu",
10658
+ menuHeaderName = "Actions",
10630
10659
  onAction,
10631
10660
  onMenuOpenChange,
10632
10661
  pagination: _pagination
@@ -10638,6 +10667,8 @@ var DataTable = (_a) => {
10638
10667
  "sticky",
10639
10668
  "menu",
10640
10669
  "menuLabel",
10670
+ "menuAriaLabel",
10671
+ "menuHeaderName",
10641
10672
  "onAction",
10642
10673
  "onMenuOpenChange",
10643
10674
  "pagination"
@@ -10673,8 +10704,8 @@ var DataTable = (_a) => {
10673
10704
  menu ? /* @__PURE__ */ import_react70.default.createElement(Table2.Cell, {
10674
10705
  key: "__contextMenu",
10675
10706
  align: "right",
10676
- "aria-label": menuLabel
10677
- }) : null
10707
+ "aria-label": menuAriaLabel
10708
+ }, menuHeaderName) : null
10678
10709
  ])), /* @__PURE__ */ import_react70.default.createElement(Table2.Body, null, /* @__PURE__ */ import_react70.default.createElement(List2, {
10679
10710
  items: rows,
10680
10711
  renderItem: (row, index) => /* @__PURE__ */ import_react70.default.createElement(Table2.Row, {
@@ -10692,7 +10723,7 @@ var DataTable = (_a) => {
10692
10723
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
10693
10724
  onOpenChange: onMenuOpenChange
10694
10725
  }, /* @__PURE__ */ import_react70.default.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ import_react70.default.createElement(Button.Icon, {
10695
- "aria-label": menuLabel,
10726
+ "aria-label": menuAriaLabel,
10696
10727
  icon: import_more3.default
10697
10728
  })), (0, import_isFunction2.default)(menu) ? menu(row, index) : menu)))
10698
10729
  })));
package/dist/system.mjs CHANGED
@@ -4644,6 +4644,22 @@ var require_stopwatch = __commonJS({
4644
4644
  }
4645
4645
  });
4646
4646
 
4647
+ // src/icons/superadmin.js
4648
+ var require_superadmin = __commonJS({
4649
+ "src/icons/superadmin.js"(exports) {
4650
+ "use strict";
4651
+ var data = {
4652
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 14.208H6.875c-1.28 0-1.919 0-2.44.158a3.667 3.667 0 00-2.444 2.445c-.158.52-.158 1.16-.158 2.439M13.292 6.875a4.125 4.125 0 11-8.25 0 4.125 4.125 0 018.25 0Zm1.375 9.625 1.833 1.833 3.667-3.666"/>',
4653
+ "left": 0,
4654
+ "top": 0,
4655
+ "width": 22,
4656
+ "height": 22
4657
+ };
4658
+ exports.__esModule = true;
4659
+ exports.default = data;
4660
+ }
4661
+ });
4662
+
4647
4663
  // src/icons/swapHorizontal.js
4648
4664
  var require_swapHorizontal = __commonJS({
4649
4665
  "src/icons/swapHorizontal.js"(exports) {
@@ -6393,6 +6409,7 @@ var import_smallTick = __toESM(require_smallTick());
6393
6409
  var import_speedometer = __toESM(require_speedometer());
6394
6410
  var import_stop = __toESM(require_stop());
6395
6411
  var import_stopwatch = __toESM(require_stopwatch());
6412
+ var import_superadmin = __toESM(require_superadmin());
6396
6413
  var import_swapHorizontal = __toESM(require_swapHorizontal());
6397
6414
  var import_swapVertical = __toESM(require_swapVertical());
6398
6415
  var import_tag = __toESM(require_tag());
@@ -8643,10 +8660,13 @@ var LabelText = ({
8643
8660
  labelText,
8644
8661
  required,
8645
8662
  helpTooltip,
8646
- helpTooltipPlacement
8663
+ helpTooltipPlacement,
8664
+ description
8647
8665
  }) => {
8648
8666
  return /* @__PURE__ */ React41.createElement("span", {
8649
- className: tw("inline-flex items-center mb-2 typography-small-strong", {
8667
+ className: tw("block mb-2")
8668
+ }, /* @__PURE__ */ React41.createElement("span", {
8669
+ className: tw("inline-flex items-center typography-small-strong", {
8650
8670
  "text-grey-60": variant === "default",
8651
8671
  "text-error-50": variant === "error",
8652
8672
  "text-grey-40": variant === "disabled"
@@ -8662,7 +8682,9 @@ var LabelText = ({
8662
8682
  }, /* @__PURE__ */ React41.createElement(InlineIcon, {
8663
8683
  icon: import_questionMark2.default,
8664
8684
  "data-testid": "icon-info"
8665
- }))));
8685
+ })))), description && /* @__PURE__ */ React41.createElement("span", {
8686
+ className: tw("block text-grey-50 typography-caption mt-1")
8687
+ }, description));
8666
8688
  };
8667
8689
  var Label = (props) => {
8668
8690
  const _a = props, { id, htmlFor, labelText, labelProps: _b = {} } = _a, labelProps = __objRest(_b, []), { "data-testid": dataTestid, children } = _a;
@@ -8740,6 +8762,7 @@ var getLabelControlProps = (_a) => {
8740
8762
  } = _b, labelProps = __objRest(_c, []), {
8741
8763
  helpTooltip,
8742
8764
  helpTooltipPlacement,
8765
+ description,
8743
8766
  maxLength,
8744
8767
  error: error2,
8745
8768
  helperText,
@@ -8754,6 +8777,7 @@ var getLabelControlProps = (_a) => {
8754
8777
  labelProps,
8755
8778
  helpTooltip,
8756
8779
  helpTooltipPlacement,
8780
+ description,
8757
8781
  error: error2,
8758
8782
  helperText,
8759
8783
  maxLength,
@@ -9153,6 +9177,7 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React47.crea
9153
9177
  marginLeft: "auto",
9154
9178
  marginRight: "auto",
9155
9179
  width: "full",
9180
+ height: "full",
9156
9181
  className: tw({
9157
9182
  "max-w-screen-xl": maxWidth === "xl",
9158
9183
  "max-w-screen-lg": maxWidth === "lg",
@@ -10369,7 +10394,9 @@ var DataList2 = ({
10369
10394
  rows: _rows,
10370
10395
  sticky,
10371
10396
  menu,
10372
- menuLabel = "Context menu",
10397
+ menuLabel,
10398
+ menuAriaLabel = menuLabel != null ? menuLabel : "Context menu",
10399
+ menuHeaderName = "Actions",
10373
10400
  onAction,
10374
10401
  onMenuOpenChange,
10375
10402
  pagination: _pagination
@@ -10399,8 +10426,8 @@ var DataList2 = ({
10399
10426
  }), column.headerName)
10400
10427
  ), menu && /* @__PURE__ */ React61.createElement(DataList.HeadCell, {
10401
10428
  align: "right",
10402
- "aria-label": menuLabel
10403
- }), /* @__PURE__ */ React61.createElement(List2, {
10429
+ "aria-label": menuAriaLabel
10430
+ }, menuHeaderName), /* @__PURE__ */ React61.createElement(List2, {
10404
10431
  items: rows,
10405
10432
  renderItem: (row, index) => /* @__PURE__ */ React61.createElement(DataList.Row, {
10406
10433
  key: row.id
@@ -10417,7 +10444,7 @@ var DataList2 = ({
10417
10444
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
10418
10445
  onOpenChange: onMenuOpenChange
10419
10446
  }, /* @__PURE__ */ React61.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React61.createElement(Button.Icon, {
10420
- "aria-label": menuLabel,
10447
+ "aria-label": menuAriaLabel,
10421
10448
  icon: import_more2.default
10422
10449
  })), isFunction(menu) ? menu(row, index) : menu)))
10423
10450
  }));
@@ -10483,7 +10510,9 @@ var DataTable = (_a) => {
10483
10510
  layout = "auto",
10484
10511
  sticky,
10485
10512
  menu,
10486
- menuLabel = "Context menu",
10513
+ menuLabel,
10514
+ menuAriaLabel = menuLabel != null ? menuLabel : "Context menu",
10515
+ menuHeaderName = "Actions",
10487
10516
  onAction,
10488
10517
  onMenuOpenChange,
10489
10518
  pagination: _pagination
@@ -10495,6 +10524,8 @@ var DataTable = (_a) => {
10495
10524
  "sticky",
10496
10525
  "menu",
10497
10526
  "menuLabel",
10527
+ "menuAriaLabel",
10528
+ "menuHeaderName",
10498
10529
  "onAction",
10499
10530
  "onMenuOpenChange",
10500
10531
  "pagination"
@@ -10530,8 +10561,8 @@ var DataTable = (_a) => {
10530
10561
  menu ? /* @__PURE__ */ React64.createElement(Table2.Cell, {
10531
10562
  key: "__contextMenu",
10532
10563
  align: "right",
10533
- "aria-label": menuLabel
10534
- }) : null
10564
+ "aria-label": menuAriaLabel
10565
+ }, menuHeaderName) : null
10535
10566
  ])), /* @__PURE__ */ React64.createElement(Table2.Body, null, /* @__PURE__ */ React64.createElement(List2, {
10536
10567
  items: rows,
10537
10568
  renderItem: (row, index) => /* @__PURE__ */ React64.createElement(Table2.Row, {
@@ -10549,7 +10580,7 @@ var DataTable = (_a) => {
10549
10580
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
10550
10581
  onOpenChange: onMenuOpenChange
10551
10582
  }, /* @__PURE__ */ React64.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React64.createElement(Button.Icon, {
10552
- "aria-label": menuLabel,
10583
+ "aria-label": menuAriaLabel,
10553
10584
  icon: import_more3.default
10554
10585
  })), isFunction2(menu) ? menu(row, index) : menu)))
10555
10586
  })));