@aivenio/aquarium 1.51.0 → 1.52.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/_variables.scss +1 -1
- package/dist/atoms.cjs +34 -13
- package/dist/atoms.mjs +34 -13
- package/dist/charts.cjs +40 -35
- package/dist/charts.mjs +35 -30
- package/dist/src/atoms/DataList/DataList.js +3 -3
- package/dist/src/atoms/Table/Table.js +3 -3
- package/dist/src/charts/AreaChart/AreaChart.js +5 -3
- package/dist/src/charts/BarChart/BarChart.js +15 -8
- package/dist/src/charts/LineChart/LineChart.js +5 -3
- package/dist/src/icons/index.d.ts +1 -0
- package/dist/src/icons/index.js +2 -1
- package/dist/src/icons/performance.d.ts +9 -0
- package/dist/src/icons/performance.js +11 -0
- package/dist/src/molecules/Badge/Badge.js +7 -6
- package/dist/src/molecules/Drawer/Drawer.js +6 -6
- package/dist/src/utils/mocks/mockDynamicIds.d.ts +1 -0
- package/dist/src/utils/mocks/mockDynamicIds.js +15 -0
- package/dist/src/utils/mocks/mockIntersectionObserver.d.ts +1 -0
- package/dist/src/utils/mocks/mockIntersectionObserver.js +12 -0
- package/dist/src/utils/mocks/mockRecharts.d.ts +1 -0
- package/dist/src/utils/mocks/mockRecharts.js +8 -0
- package/dist/src/utils/mocks/mockResizeObservable.d.ts +1 -0
- package/dist/src/utils/mocks/mockResizeObservable.js +60 -0
- package/dist/src/utils/setupTests.js +9 -22
- package/dist/system.cjs +68 -24
- package/dist/system.mjs +68 -24
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/package.json +1 -1
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,25 @@ var createBadge = (type, displayName) => {
|
|
7474
7491
|
Component.Skeleton.displayName = `${displayName}.Skeleton`;
|
7475
7492
|
return Component;
|
7476
7493
|
};
|
7477
|
-
var NotificationBadge = (
|
7478
|
-
|
7479
|
-
|
7480
|
-
|
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:
|
7488
|
-
"
|
7489
|
-
"
|
7490
|
-
|
7491
|
-
|
7503
|
+
var DotBadge = ({ dense = false }, ...props) => {
|
7504
|
+
return /* @__PURE__ */ React22.createElement("span", __spreadValues({
|
7505
|
+
className: classNames(
|
7506
|
+
"Aquarium-Badge.Dot",
|
7507
|
+
tw("rounded-full bg-current", {
|
7508
|
+
"w-[6px] h-[6px]": dense,
|
7509
|
+
"w-[9px] h-[9px]": !dense
|
7510
|
+
})
|
7511
|
+
)
|
7512
|
+
}, props));
|
7492
7513
|
};
|
7493
7514
|
var Badge = createBadge("default", "Badge");
|
7494
7515
|
Badge.Notification = NotificationBadge;
|
@@ -10216,10 +10237,10 @@ var TableSortCell = (_a) => {
|
|
10216
10237
|
})
|
10217
10238
|
}, /* @__PURE__ */ React58.createElement(InlineIcon, {
|
10218
10239
|
icon: import_chevronUp3.default,
|
10219
|
-
className: getSortCellIconClassNames(direction === "
|
10240
|
+
className: getSortCellIconClassNames(direction === "ascending")
|
10220
10241
|
}), /* @__PURE__ */ React58.createElement(InlineIcon, {
|
10221
10242
|
icon: import_chevronDown4.default,
|
10222
|
-
className: getSortCellIconClassNames(direction === "
|
10243
|
+
className: getSortCellIconClassNames(direction === "descending")
|
10223
10244
|
}))));
|
10224
10245
|
};
|
10225
10246
|
var Caption = ({ children }) => /* @__PURE__ */ React58.createElement(Typography2.Caption, {
|
@@ -10336,10 +10357,10 @@ var SortCell = (_a) => {
|
|
10336
10357
|
})
|
10337
10358
|
}, /* @__PURE__ */ React59.createElement(InlineIcon, {
|
10338
10359
|
icon: import_chevronUp4.default,
|
10339
|
-
className: getSortCellIconClassNames(direction === "
|
10360
|
+
className: getSortCellIconClassNames(direction === "ascending")
|
10340
10361
|
}), /* @__PURE__ */ React59.createElement(InlineIcon, {
|
10341
10362
|
icon: import_chevronDown5.default,
|
10342
|
-
className: getSortCellIconClassNames(direction === "
|
10363
|
+
className: getSortCellIconClassNames(direction === "descending")
|
10343
10364
|
}))));
|
10344
10365
|
};
|
10345
10366
|
DataList.HeadCell = HeadCell;
|
@@ -11620,7 +11641,33 @@ var Drawer = (_a) => {
|
|
11620
11641
|
};
|
11621
11642
|
var DrawerWrapper = React72.forwardRef(
|
11622
11643
|
(_a, ref) => {
|
11623
|
-
var _b = _a, {
|
11644
|
+
var _b = _a, {
|
11645
|
+
title,
|
11646
|
+
children,
|
11647
|
+
size = "sm",
|
11648
|
+
primaryAction,
|
11649
|
+
secondaryActions,
|
11650
|
+
onClose,
|
11651
|
+
spring,
|
11652
|
+
onAction,
|
11653
|
+
menu,
|
11654
|
+
onMenuOpenChange,
|
11655
|
+
menuLabel,
|
11656
|
+
menuAriaLabel
|
11657
|
+
} = _b, props = __objRest(_b, [
|
11658
|
+
"title",
|
11659
|
+
"children",
|
11660
|
+
"size",
|
11661
|
+
"primaryAction",
|
11662
|
+
"secondaryActions",
|
11663
|
+
"onClose",
|
11664
|
+
"spring",
|
11665
|
+
"onAction",
|
11666
|
+
"menu",
|
11667
|
+
"onMenuOpenChange",
|
11668
|
+
"menuLabel",
|
11669
|
+
"menuAriaLabel"
|
11670
|
+
]);
|
11624
11671
|
var _a2;
|
11625
11672
|
const labelledBy = useId9();
|
11626
11673
|
const describedBy = useId9();
|
@@ -11654,18 +11701,15 @@ var DrawerWrapper = React72.forwardRef(
|
|
11654
11701
|
noFooter: !(secondaryActions || primaryAction)
|
11655
11702
|
}, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React72.createElement(Modal.Footer, null, /* @__PURE__ */ React72.createElement(Modal.Actions, {
|
11656
11703
|
className: size === "sm" ? tw("flex-col") : void 0
|
11657
|
-
}, size !== "sm" &&
|
11704
|
+
}, size !== "sm" && menu && /* @__PURE__ */ React72.createElement(Box.Flex, {
|
11658
11705
|
alignItems: "center"
|
11659
11706
|
}, /* @__PURE__ */ React72.createElement(DropdownMenu2, {
|
11660
|
-
onAction: (action) =>
|
11661
|
-
|
11662
|
-
return (_a3 = props.onAction) == null ? void 0 : _a3.call(props, action);
|
11663
|
-
},
|
11664
|
-
onOpenChange: props.onMenuOpenChange
|
11707
|
+
onAction: (action) => onAction == null ? void 0 : onAction(action),
|
11708
|
+
onOpenChange: onMenuOpenChange
|
11665
11709
|
}, /* @__PURE__ */ React72.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React72.createElement(Button.Icon, {
|
11666
|
-
"aria-label": (_a2 =
|
11710
|
+
"aria-label": (_a2 = menuAriaLabel != null ? menuAriaLabel : menuLabel) != null ? _a2 : "Context menu",
|
11667
11711
|
icon: import_more4.default
|
11668
|
-
})),
|
11712
|
+
})), menu)), secondaryActions && castArray(secondaryActions).filter(Boolean).map((_b2) => {
|
11669
11713
|
var _c = _b2, { text } = _c, action = __objRest(_c, ["text"]);
|
11670
11714
|
return /* @__PURE__ */ React72.createElement(Button.Secondary, __spreadValues({
|
11671
11715
|
key: text
|