@aivenio/aquarium 1.13.0 → 1.14.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/_variables_timescale.scss +1 -1
- package/dist/atoms.cjs +28 -12
- package/dist/atoms.mjs +28 -12
- package/dist/src/atoms/DataList/DataList.d.ts +3 -1
- package/dist/src/atoms/DataList/DataList.js +5 -5
- package/dist/src/atoms/Table/Table.d.ts +4 -3
- package/dist/src/atoms/Table/Table.js +17 -7
- package/dist/src/molecules/Modal/Modal.d.ts +5 -0
- package/dist/src/molecules/Modal/Modal.js +4 -3
- package/dist/src/utils/table/types.d.ts +3 -0
- package/dist/src/utils/table/types.js +2 -1
- package/dist/styles.css +5 -5
- package/dist/styles_timescaledb.css +5 -5
- package/dist/system.cjs +53 -20
- package/dist/system.mjs +53 -20
- package/dist/tokens.json +4 -4
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/system.cjs
CHANGED
@@ -221,7 +221,7 @@ var require_tokens = __commonJS({
|
|
221
221
|
style: {
|
222
222
|
fontFamily: "Inter",
|
223
223
|
fontSize: "16px",
|
224
|
-
fontWeight:
|
224
|
+
fontWeight: 500,
|
225
225
|
fontStyle: "normal",
|
226
226
|
lineHeight: 1.5,
|
227
227
|
textTransform: "none"
|
@@ -247,7 +247,7 @@ var require_tokens = __commonJS({
|
|
247
247
|
style: {
|
248
248
|
fontFamily: "Inter",
|
249
249
|
fontSize: "14px",
|
250
|
-
fontWeight:
|
250
|
+
fontWeight: 500,
|
251
251
|
fontStyle: "normal",
|
252
252
|
lineHeight: 1.42,
|
253
253
|
textTransform: "none"
|
@@ -781,7 +781,7 @@ var require_tokens = __commonJS({
|
|
781
781
|
style: {
|
782
782
|
fontFamily: "Inter",
|
783
783
|
fontSize: "16px",
|
784
|
-
fontWeight:
|
784
|
+
fontWeight: 500,
|
785
785
|
fontStyle: "normal",
|
786
786
|
lineHeight: 1.5,
|
787
787
|
textTransform: "none"
|
@@ -807,7 +807,7 @@ var require_tokens = __commonJS({
|
|
807
807
|
style: {
|
808
808
|
fontFamily: "Inter",
|
809
809
|
fontSize: "14px",
|
810
|
-
fontWeight:
|
810
|
+
fontWeight: 500,
|
811
811
|
fontStyle: "normal",
|
812
812
|
lineHeight: 1.42,
|
813
813
|
textTransform: "none"
|
@@ -5441,7 +5441,7 @@ var TableBody = (_a) => {
|
|
5441
5441
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
5442
5442
|
return /* @__PURE__ */ import_react50.default.createElement("tbody", __spreadValues({}, rest), children);
|
5443
5443
|
};
|
5444
|
-
var rowClassNames = tw("children:border-grey-10 children:last:border-b-0 hover:bg-grey-0");
|
5444
|
+
var rowClassNames = tw("children:border-grey-10 group children:last:border-b-0 hover:bg-grey-0");
|
5445
5445
|
var TableRow = (_a) => {
|
5446
5446
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
5447
5447
|
return /* @__PURE__ */ import_react50.default.createElement("tr", __spreadProps(__spreadValues({}, rest), {
|
@@ -5449,27 +5449,43 @@ var TableRow = (_a) => {
|
|
5449
5449
|
}), children);
|
5450
5450
|
};
|
5451
5451
|
var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
|
5452
|
-
var getBodyCellClassNames = (table = true) => tw("text-grey-70 py-3", {
|
5452
|
+
var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-grey-70 py-3", {
|
5453
5453
|
"h-[50px]": table,
|
5454
|
-
"min-h-[50px]": !table
|
5454
|
+
"min-h-[50px]": !table,
|
5455
|
+
"sticky z-10 bg-white group-hover:bg-grey-0": Boolean(stickyColumn),
|
5456
|
+
"left-0": stickyColumn === "left",
|
5457
|
+
"right-0": stickyColumn === "right"
|
5455
5458
|
});
|
5456
5459
|
var getAlignClassNames = (align) => tw({ "text-right": align === "right", "text-center": align === "center" });
|
5457
|
-
var getHeadCellClassNames = (sticky = true) => {
|
5460
|
+
var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
5458
5461
|
const common = tw("py-[14px] text-left bg-white border-grey-40 text-grey-50 font-normal");
|
5459
|
-
return sticky ? classNames(
|
5462
|
+
return sticky ? classNames(
|
5463
|
+
common,
|
5464
|
+
tw("sticky top-0", {
|
5465
|
+
"z-10": !stickyColumn,
|
5466
|
+
"z-20": Boolean(stickyColumn),
|
5467
|
+
"left-0": stickyColumn === "left",
|
5468
|
+
"right-0": stickyColumn === "right"
|
5469
|
+
})
|
5470
|
+
) : common;
|
5460
5471
|
};
|
5461
5472
|
var TableCell = (_a) => {
|
5462
|
-
var _b = _a, { children, className, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "align"]);
|
5473
|
+
var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
|
5463
5474
|
const headContext = import_react50.default.useContext(HeadContext);
|
5464
5475
|
return headContext ? /* @__PURE__ */ import_react50.default.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
5465
5476
|
className: classNames(
|
5466
5477
|
cellClassNames,
|
5467
|
-
getHeadCellClassNames(headContext.sticky),
|
5478
|
+
getHeadCellClassNames(headContext.sticky, stickyColumn),
|
5468
5479
|
getAlignClassNames(align),
|
5469
5480
|
className
|
5470
5481
|
)
|
5471
5482
|
}), children) : /* @__PURE__ */ import_react50.default.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
5472
|
-
className: classNames(
|
5483
|
+
className: classNames(
|
5484
|
+
cellClassNames,
|
5485
|
+
getBodyCellClassNames(true, stickyColumn),
|
5486
|
+
getAlignClassNames(align),
|
5487
|
+
className
|
5488
|
+
)
|
5473
5489
|
}), children);
|
5474
5490
|
};
|
5475
5491
|
var TableSelectCell = (_a) => {
|
@@ -5538,24 +5554,39 @@ var HeadCell = (_a) => {
|
|
5538
5554
|
var _b = _a, {
|
5539
5555
|
className,
|
5540
5556
|
sticky,
|
5541
|
-
align
|
5557
|
+
align,
|
5558
|
+
stickyColumn
|
5542
5559
|
} = _b, rest = __objRest(_b, [
|
5543
5560
|
"className",
|
5544
5561
|
"sticky",
|
5545
|
-
"align"
|
5562
|
+
"align",
|
5563
|
+
"stickyColumn"
|
5546
5564
|
]);
|
5547
5565
|
return /* @__PURE__ */ import_react51.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
5548
5566
|
role: "cell",
|
5549
|
-
className: classNames(
|
5567
|
+
className: classNames(
|
5568
|
+
cellClassNames,
|
5569
|
+
getHeadCellClassNames(sticky, stickyColumn),
|
5570
|
+
getAlignClassNames2(align),
|
5571
|
+
className
|
5572
|
+
)
|
5550
5573
|
}));
|
5551
5574
|
};
|
5552
5575
|
var Cell = (_a) => {
|
5553
|
-
var _b = _a, {
|
5576
|
+
var _b = _a, {
|
5577
|
+
className,
|
5578
|
+
align,
|
5579
|
+
stickyColumn
|
5580
|
+
} = _b, rest = __objRest(_b, [
|
5581
|
+
"className",
|
5582
|
+
"align",
|
5583
|
+
"stickyColumn"
|
5584
|
+
]);
|
5554
5585
|
return /* @__PURE__ */ import_react51.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
5555
5586
|
role: "cell",
|
5556
5587
|
className: classNames(
|
5557
5588
|
cellClassNames,
|
5558
|
-
getBodyCellClassNames(false),
|
5589
|
+
getBodyCellClassNames(false, stickyColumn),
|
5559
5590
|
getAlignClassNames2(align),
|
5560
5591
|
tw("border-grey-10 group-hover:bg-grey-0 group-last:border-b-0"),
|
5561
5592
|
className
|
@@ -5610,7 +5641,8 @@ var renameProperty = (oldProp, newProp, _a) => {
|
|
5610
5641
|
var toSortDirection = (direction) => direction === "ascending" ? "asc" : direction === "descending" ? "desc" : false;
|
5611
5642
|
var cellProps = (column) => ({
|
5612
5643
|
key: column.key || column.headerName,
|
5613
|
-
align: column.type === "number" || column.type === "action" ? "right" : "left"
|
5644
|
+
align: column.type === "number" || column.type === "action" ? "right" : "left",
|
5645
|
+
stickyColumn: column.sticky
|
5614
5646
|
});
|
5615
5647
|
var columnIsFieldColumn = (column) => Boolean(column && column.field);
|
5616
5648
|
|
@@ -7204,12 +7236,13 @@ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /*
|
|
7204
7236
|
|
7205
7237
|
// src/molecules/Modal/Modal.tsx
|
7206
7238
|
var import_cross5 = __toESM(require_cross());
|
7207
|
-
var Modal2 = (
|
7239
|
+
var Modal2 = (_a) => {
|
7240
|
+
var _b = _a, { closeOnEsc = true } = _b, props = __objRest(_b, ["closeOnEsc"]);
|
7208
7241
|
const { open, onClose, size, portalContainer } = props;
|
7209
7242
|
const ref = import_react77.default.useRef(null);
|
7210
7243
|
const state = (0, import_overlays11.useOverlayTriggerState)({ isOpen: open, onOpenChange: (isOpen) => !isOpen && onClose() });
|
7211
7244
|
const { modalProps, underlayProps } = (0, import_overlays10.useModalOverlay)(
|
7212
|
-
{ isDismissable: true, isKeyboardDismissDisabled:
|
7245
|
+
{ isDismissable: true, isKeyboardDismissDisabled: !closeOnEsc },
|
7213
7246
|
state,
|
7214
7247
|
ref
|
7215
7248
|
);
|
package/dist/system.mjs
CHANGED
@@ -219,7 +219,7 @@ var require_tokens = __commonJS({
|
|
219
219
|
style: {
|
220
220
|
fontFamily: "Inter",
|
221
221
|
fontSize: "16px",
|
222
|
-
fontWeight:
|
222
|
+
fontWeight: 500,
|
223
223
|
fontStyle: "normal",
|
224
224
|
lineHeight: 1.5,
|
225
225
|
textTransform: "none"
|
@@ -245,7 +245,7 @@ var require_tokens = __commonJS({
|
|
245
245
|
style: {
|
246
246
|
fontFamily: "Inter",
|
247
247
|
fontSize: "14px",
|
248
|
-
fontWeight:
|
248
|
+
fontWeight: 500,
|
249
249
|
fontStyle: "normal",
|
250
250
|
lineHeight: 1.42,
|
251
251
|
textTransform: "none"
|
@@ -779,7 +779,7 @@ var require_tokens = __commonJS({
|
|
779
779
|
style: {
|
780
780
|
fontFamily: "Inter",
|
781
781
|
fontSize: "16px",
|
782
|
-
fontWeight:
|
782
|
+
fontWeight: 500,
|
783
783
|
fontStyle: "normal",
|
784
784
|
lineHeight: 1.5,
|
785
785
|
textTransform: "none"
|
@@ -805,7 +805,7 @@ var require_tokens = __commonJS({
|
|
805
805
|
style: {
|
806
806
|
fontFamily: "Inter",
|
807
807
|
fontSize: "14px",
|
808
|
-
fontWeight:
|
808
|
+
fontWeight: 500,
|
809
809
|
fontStyle: "normal",
|
810
810
|
lineHeight: 1.42,
|
811
811
|
textTransform: "none"
|
@@ -5302,7 +5302,7 @@ var TableBody = (_a) => {
|
|
5302
5302
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
5303
5303
|
return /* @__PURE__ */ React45.createElement("tbody", __spreadValues({}, rest), children);
|
5304
5304
|
};
|
5305
|
-
var rowClassNames = tw("children:border-grey-10 children:last:border-b-0 hover:bg-grey-0");
|
5305
|
+
var rowClassNames = tw("children:border-grey-10 group children:last:border-b-0 hover:bg-grey-0");
|
5306
5306
|
var TableRow = (_a) => {
|
5307
5307
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
5308
5308
|
return /* @__PURE__ */ React45.createElement("tr", __spreadProps(__spreadValues({}, rest), {
|
@@ -5310,27 +5310,43 @@ var TableRow = (_a) => {
|
|
5310
5310
|
}), children);
|
5311
5311
|
};
|
5312
5312
|
var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
|
5313
|
-
var getBodyCellClassNames = (table = true) => tw("text-grey-70 py-3", {
|
5313
|
+
var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-grey-70 py-3", {
|
5314
5314
|
"h-[50px]": table,
|
5315
|
-
"min-h-[50px]": !table
|
5315
|
+
"min-h-[50px]": !table,
|
5316
|
+
"sticky z-10 bg-white group-hover:bg-grey-0": Boolean(stickyColumn),
|
5317
|
+
"left-0": stickyColumn === "left",
|
5318
|
+
"right-0": stickyColumn === "right"
|
5316
5319
|
});
|
5317
5320
|
var getAlignClassNames = (align) => tw({ "text-right": align === "right", "text-center": align === "center" });
|
5318
|
-
var getHeadCellClassNames = (sticky = true) => {
|
5321
|
+
var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
5319
5322
|
const common = tw("py-[14px] text-left bg-white border-grey-40 text-grey-50 font-normal");
|
5320
|
-
return sticky ? classNames(
|
5323
|
+
return sticky ? classNames(
|
5324
|
+
common,
|
5325
|
+
tw("sticky top-0", {
|
5326
|
+
"z-10": !stickyColumn,
|
5327
|
+
"z-20": Boolean(stickyColumn),
|
5328
|
+
"left-0": stickyColumn === "left",
|
5329
|
+
"right-0": stickyColumn === "right"
|
5330
|
+
})
|
5331
|
+
) : common;
|
5321
5332
|
};
|
5322
5333
|
var TableCell = (_a) => {
|
5323
|
-
var _b = _a, { children, className, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "align"]);
|
5334
|
+
var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
|
5324
5335
|
const headContext = React45.useContext(HeadContext);
|
5325
5336
|
return headContext ? /* @__PURE__ */ React45.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
5326
5337
|
className: classNames(
|
5327
5338
|
cellClassNames,
|
5328
|
-
getHeadCellClassNames(headContext.sticky),
|
5339
|
+
getHeadCellClassNames(headContext.sticky, stickyColumn),
|
5329
5340
|
getAlignClassNames(align),
|
5330
5341
|
className
|
5331
5342
|
)
|
5332
5343
|
}), children) : /* @__PURE__ */ React45.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
5333
|
-
className: classNames(
|
5344
|
+
className: classNames(
|
5345
|
+
cellClassNames,
|
5346
|
+
getBodyCellClassNames(true, stickyColumn),
|
5347
|
+
getAlignClassNames(align),
|
5348
|
+
className
|
5349
|
+
)
|
5334
5350
|
}), children);
|
5335
5351
|
};
|
5336
5352
|
var TableSelectCell = (_a) => {
|
@@ -5399,24 +5415,39 @@ var HeadCell = (_a) => {
|
|
5399
5415
|
var _b = _a, {
|
5400
5416
|
className,
|
5401
5417
|
sticky,
|
5402
|
-
align
|
5418
|
+
align,
|
5419
|
+
stickyColumn
|
5403
5420
|
} = _b, rest = __objRest(_b, [
|
5404
5421
|
"className",
|
5405
5422
|
"sticky",
|
5406
|
-
"align"
|
5423
|
+
"align",
|
5424
|
+
"stickyColumn"
|
5407
5425
|
]);
|
5408
5426
|
return /* @__PURE__ */ React46.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
5409
5427
|
role: "cell",
|
5410
|
-
className: classNames(
|
5428
|
+
className: classNames(
|
5429
|
+
cellClassNames,
|
5430
|
+
getHeadCellClassNames(sticky, stickyColumn),
|
5431
|
+
getAlignClassNames2(align),
|
5432
|
+
className
|
5433
|
+
)
|
5411
5434
|
}));
|
5412
5435
|
};
|
5413
5436
|
var Cell = (_a) => {
|
5414
|
-
var _b = _a, {
|
5437
|
+
var _b = _a, {
|
5438
|
+
className,
|
5439
|
+
align,
|
5440
|
+
stickyColumn
|
5441
|
+
} = _b, rest = __objRest(_b, [
|
5442
|
+
"className",
|
5443
|
+
"align",
|
5444
|
+
"stickyColumn"
|
5445
|
+
]);
|
5415
5446
|
return /* @__PURE__ */ React46.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
5416
5447
|
role: "cell",
|
5417
5448
|
className: classNames(
|
5418
5449
|
cellClassNames,
|
5419
|
-
getBodyCellClassNames(false),
|
5450
|
+
getBodyCellClassNames(false, stickyColumn),
|
5420
5451
|
getAlignClassNames2(align),
|
5421
5452
|
tw("border-grey-10 group-hover:bg-grey-0 group-last:border-b-0"),
|
5422
5453
|
className
|
@@ -5471,7 +5502,8 @@ var renameProperty = (oldProp, newProp, _a) => {
|
|
5471
5502
|
var toSortDirection = (direction) => direction === "ascending" ? "asc" : direction === "descending" ? "desc" : false;
|
5472
5503
|
var cellProps = (column) => ({
|
5473
5504
|
key: column.key || column.headerName,
|
5474
|
-
align: column.type === "number" || column.type === "action" ? "right" : "left"
|
5505
|
+
align: column.type === "number" || column.type === "action" ? "right" : "left",
|
5506
|
+
stickyColumn: column.sticky
|
5475
5507
|
});
|
5476
5508
|
var columnIsFieldColumn = (column) => Boolean(column && column.field);
|
5477
5509
|
|
@@ -7065,12 +7097,13 @@ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /*
|
|
7065
7097
|
|
7066
7098
|
// src/molecules/Modal/Modal.tsx
|
7067
7099
|
var import_cross5 = __toESM(require_cross());
|
7068
|
-
var Modal2 = (
|
7100
|
+
var Modal2 = (_a) => {
|
7101
|
+
var _b = _a, { closeOnEsc = true } = _b, props = __objRest(_b, ["closeOnEsc"]);
|
7069
7102
|
const { open, onClose, size, portalContainer } = props;
|
7070
7103
|
const ref = React71.useRef(null);
|
7071
7104
|
const state = useOverlayTriggerState4({ isOpen: open, onOpenChange: (isOpen) => !isOpen && onClose() });
|
7072
7105
|
const { modalProps, underlayProps } = useModalOverlay2(
|
7073
|
-
{ isDismissable: true, isKeyboardDismissDisabled:
|
7106
|
+
{ isDismissable: true, isKeyboardDismissDisabled: !closeOnEsc },
|
7074
7107
|
state,
|
7075
7108
|
ref
|
7076
7109
|
);
|
package/dist/tokens.json
CHANGED
@@ -160,7 +160,7 @@
|
|
160
160
|
"style": {
|
161
161
|
"fontFamily": "Inter",
|
162
162
|
"fontSize": "16px",
|
163
|
-
"fontWeight":
|
163
|
+
"fontWeight": 500,
|
164
164
|
"fontStyle": "normal",
|
165
165
|
"lineHeight": 1.5,
|
166
166
|
"textTransform": "none"
|
@@ -186,7 +186,7 @@
|
|
186
186
|
"style": {
|
187
187
|
"fontFamily": "Inter",
|
188
188
|
"fontSize": "14px",
|
189
|
-
"fontWeight":
|
189
|
+
"fontWeight": 500,
|
190
190
|
"fontStyle": "normal",
|
191
191
|
"lineHeight": 1.42,
|
192
192
|
"textTransform": "none"
|
@@ -720,7 +720,7 @@
|
|
720
720
|
"style": {
|
721
721
|
"fontFamily": "Inter",
|
722
722
|
"fontSize": "16px",
|
723
|
-
"fontWeight":
|
723
|
+
"fontWeight": 500,
|
724
724
|
"fontStyle": "normal",
|
725
725
|
"lineHeight": 1.5,
|
726
726
|
"textTransform": "none"
|
@@ -746,7 +746,7 @@
|
|
746
746
|
"style": {
|
747
747
|
"fontFamily": "Inter",
|
748
748
|
"fontSize": "14px",
|
749
|
-
"fontWeight":
|
749
|
+
"fontWeight": 500,
|
750
750
|
"fontStyle": "normal",
|
751
751
|
"lineHeight": 1.42,
|
752
752
|
"textTransform": "none"
|