@aivenio/aquarium 1.33.0 → 1.35.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 +18 -1
- package/dist/atoms.mjs +18 -1
- package/dist/src/icons/index.d.ts +1 -0
- package/dist/src/icons/index.js +2 -1
- package/dist/src/icons/loading.js +1 -1
- package/dist/src/icons/superadmin.d.ts +9 -0
- package/dist/src/icons/superadmin.js +11 -0
- package/dist/src/molecules/Container/Container.js +2 -2
- package/dist/src/molecules/DataList/DataList.d.ts +1 -1
- package/dist/src/molecules/DataList/DataList.js +4 -4
- package/dist/src/molecules/DataTable/DataTable.d.ts +1 -1
- package/dist/src/molecules/DataTable/DataTable.js +4 -4
- package/dist/src/molecules/EmptyState/EmptyState.d.ts +37 -6
- package/dist/src/molecules/EmptyState/EmptyState.js +33 -18
- package/dist/src/utils/table/types.d.ts +10 -1
- package/dist/styles.css +3 -0
- package/dist/styles_timescaledb.css +3 -0
- package/dist/system.cjs +84 -61
- package/dist/system.mjs +84 -61
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +12 -11
package/dist/styles.css
CHANGED
package/dist/system.cjs
CHANGED
@@ -3563,7 +3563,7 @@ var require_loading = __commonJS({
|
|
3563
3563
|
"src/icons/loading.js"(exports) {
|
3564
3564
|
"use strict";
|
3565
3565
|
var data = {
|
3566
|
-
"body": '<g fill="none" fill-rule="evenodd" stroke="currentColor" stroke-width="
|
3566
|
+
"body": '<g fill="none" fill-rule="evenodd" stroke="currentColor" stroke-width="3" transform="translate(1 1)"><circle cx="18" cy="18" r="18" stroke-opacity=".5"/><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" dur="1s" from="0 18 18" repeatCount="indefinite" to="360 18 18" type="rotate"/></path></g>',
|
3567
3567
|
"left": 0,
|
3568
3568
|
"top": 0,
|
3569
3569
|
"width": 38,
|
@@ -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());
|
@@ -9303,6 +9320,7 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ import_react
|
|
9303
9320
|
marginLeft: "auto",
|
9304
9321
|
marginRight: "auto",
|
9305
9322
|
width: "full",
|
9323
|
+
height: "full",
|
9306
9324
|
className: tw({
|
9307
9325
|
"max-w-screen-xl": maxWidth === "xl",
|
9308
9326
|
"max-w-screen-lg": maxWidth === "lg",
|
@@ -10519,7 +10537,9 @@ var DataList2 = ({
|
|
10519
10537
|
rows: _rows,
|
10520
10538
|
sticky,
|
10521
10539
|
menu,
|
10522
|
-
menuLabel
|
10540
|
+
menuLabel,
|
10541
|
+
menuAriaLabel = menuLabel != null ? menuLabel : "Context menu",
|
10542
|
+
menuHeaderName = "Actions",
|
10523
10543
|
onAction,
|
10524
10544
|
onMenuOpenChange,
|
10525
10545
|
pagination: _pagination
|
@@ -10549,8 +10569,8 @@ var DataList2 = ({
|
|
10549
10569
|
}), column.headerName)
|
10550
10570
|
), menu && /* @__PURE__ */ import_react67.default.createElement(DataList.HeadCell, {
|
10551
10571
|
align: "right",
|
10552
|
-
"aria-label":
|
10553
|
-
}), /* @__PURE__ */ import_react67.default.createElement(List2, {
|
10572
|
+
"aria-label": menuAriaLabel
|
10573
|
+
}, menuHeaderName), /* @__PURE__ */ import_react67.default.createElement(List2, {
|
10554
10574
|
items: rows,
|
10555
10575
|
renderItem: (row, index) => /* @__PURE__ */ import_react67.default.createElement(DataList.Row, {
|
10556
10576
|
key: row.id
|
@@ -10567,7 +10587,7 @@ var DataList2 = ({
|
|
10567
10587
|
onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
|
10568
10588
|
onOpenChange: onMenuOpenChange
|
10569
10589
|
}, /* @__PURE__ */ import_react67.default.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ import_react67.default.createElement(Button.Icon, {
|
10570
|
-
"aria-label":
|
10590
|
+
"aria-label": menuAriaLabel,
|
10571
10591
|
icon: import_more2.default
|
10572
10592
|
})), (0, import_isFunction.default)(menu) ? menu(row, index) : menu)))
|
10573
10593
|
}));
|
@@ -10633,7 +10653,9 @@ var DataTable = (_a) => {
|
|
10633
10653
|
layout = "auto",
|
10634
10654
|
sticky,
|
10635
10655
|
menu,
|
10636
|
-
menuLabel
|
10656
|
+
menuLabel,
|
10657
|
+
menuAriaLabel = menuLabel != null ? menuLabel : "Context menu",
|
10658
|
+
menuHeaderName = "Actions",
|
10637
10659
|
onAction,
|
10638
10660
|
onMenuOpenChange,
|
10639
10661
|
pagination: _pagination
|
@@ -10645,6 +10667,8 @@ var DataTable = (_a) => {
|
|
10645
10667
|
"sticky",
|
10646
10668
|
"menu",
|
10647
10669
|
"menuLabel",
|
10670
|
+
"menuAriaLabel",
|
10671
|
+
"menuHeaderName",
|
10648
10672
|
"onAction",
|
10649
10673
|
"onMenuOpenChange",
|
10650
10674
|
"pagination"
|
@@ -10680,8 +10704,8 @@ var DataTable = (_a) => {
|
|
10680
10704
|
menu ? /* @__PURE__ */ import_react70.default.createElement(Table2.Cell, {
|
10681
10705
|
key: "__contextMenu",
|
10682
10706
|
align: "right",
|
10683
|
-
"aria-label":
|
10684
|
-
}) : null
|
10707
|
+
"aria-label": menuAriaLabel
|
10708
|
+
}, menuHeaderName) : null
|
10685
10709
|
])), /* @__PURE__ */ import_react70.default.createElement(Table2.Body, null, /* @__PURE__ */ import_react70.default.createElement(List2, {
|
10686
10710
|
items: rows,
|
10687
10711
|
renderItem: (row, index) => /* @__PURE__ */ import_react70.default.createElement(Table2.Row, {
|
@@ -10699,7 +10723,7 @@ var DataTable = (_a) => {
|
|
10699
10723
|
onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
|
10700
10724
|
onOpenChange: onMenuOpenChange
|
10701
10725
|
}, /* @__PURE__ */ import_react70.default.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ import_react70.default.createElement(Button.Icon, {
|
10702
|
-
"aria-label":
|
10726
|
+
"aria-label": menuAriaLabel,
|
10703
10727
|
icon: import_more3.default
|
10704
10728
|
})), (0, import_isFunction2.default)(menu) ? menu(row, index) : menu)))
|
10705
10729
|
})));
|
@@ -11155,31 +11179,11 @@ Dropdown.Menu = DropdownMenu3;
|
|
11155
11179
|
Dropdown.Item = DropdownItem;
|
11156
11180
|
|
11157
11181
|
// src/molecules/EmptyState/EmptyState.tsx
|
11158
|
-
var import_react79 = __toESM(require("react"));
|
11159
|
-
var import_omit9 = __toESM(require("lodash/omit"));
|
11160
|
-
|
11161
|
-
// src/molecules/Flexbox/FlexboxItem.tsx
|
11162
11182
|
var import_react78 = __toESM(require("react"));
|
11163
|
-
var
|
11164
|
-
({ htmlTag = "div", className, style, children, display, flex, grow, shrink, order, alignSelf }) => {
|
11165
|
-
const hookStyle = useStyle({
|
11166
|
-
display,
|
11167
|
-
flex,
|
11168
|
-
flexGrow: grow,
|
11169
|
-
flexShrink: shrink,
|
11170
|
-
order,
|
11171
|
-
alignSelf
|
11172
|
-
});
|
11173
|
-
const HtmlElement = htmlTag;
|
11174
|
-
return /* @__PURE__ */ import_react78.default.createElement(HtmlElement, {
|
11175
|
-
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
11176
|
-
className
|
11177
|
-
}, children);
|
11178
|
-
}
|
11179
|
-
);
|
11180
|
-
|
11181
|
-
// src/molecules/EmptyState/EmptyState.tsx
|
11183
|
+
var import_omit9 = __toESM(require("lodash/omit"));
|
11182
11184
|
var EmptyStateLayout = /* @__PURE__ */ ((EmptyStateLayout2) => {
|
11185
|
+
EmptyStateLayout2["Vertical"] = "vertical";
|
11186
|
+
EmptyStateLayout2["Horizontal"] = "horizontal";
|
11183
11187
|
EmptyStateLayout2["CenterVertical"] = "center-vertical";
|
11184
11188
|
EmptyStateLayout2["LeftVertical"] = "left-vertical";
|
11185
11189
|
EmptyStateLayout2["CenterHorizontal"] = "center-horizontal";
|
@@ -11195,6 +11199,7 @@ var layoutStyle = (layout) => {
|
|
11195
11199
|
alignItems: "flex-start"
|
11196
11200
|
};
|
11197
11201
|
case "left-horizontal" /* LeftHorizontal */:
|
11202
|
+
case "horizontal" /* Horizontal */:
|
11198
11203
|
return {
|
11199
11204
|
layout: "row",
|
11200
11205
|
justifyContent: "flex-start",
|
@@ -11207,6 +11212,7 @@ var layoutStyle = (layout) => {
|
|
11207
11212
|
alignItems: "flex-start"
|
11208
11213
|
};
|
11209
11214
|
case "center-vertical" /* CenterVertical */:
|
11215
|
+
case "vertical" /* Vertical */:
|
11210
11216
|
default:
|
11211
11217
|
return {
|
11212
11218
|
layout: "column",
|
@@ -11215,6 +11221,7 @@ var layoutStyle = (layout) => {
|
|
11215
11221
|
};
|
11216
11222
|
}
|
11217
11223
|
};
|
11224
|
+
var isVerticalLayout = (layout) => layout === "vertical" /* Vertical */ || layout === "center-vertical" /* CenterVertical */;
|
11218
11225
|
var EmptyState = ({
|
11219
11226
|
title,
|
11220
11227
|
image,
|
@@ -11225,65 +11232,81 @@ var EmptyState = ({
|
|
11225
11232
|
primaryAction,
|
11226
11233
|
secondaryAction,
|
11227
11234
|
footer,
|
11228
|
-
layout = "
|
11229
|
-
borderStyle = "dashed"
|
11235
|
+
layout = "vertical" /* Vertical */,
|
11236
|
+
borderStyle = "dashed",
|
11237
|
+
fullHeight = isVerticalLayout(layout) ? true : false
|
11230
11238
|
}) => {
|
11231
11239
|
const template = layoutStyle(layout);
|
11232
|
-
return /* @__PURE__ */
|
11240
|
+
return /* @__PURE__ */ import_react78.default.createElement(Box, {
|
11233
11241
|
className: classNames(
|
11234
11242
|
"Aquarium-EmptyState",
|
11235
|
-
tw("rounded", {
|
11243
|
+
tw("rounded p-[56px]", {
|
11236
11244
|
"border border-dashed": borderStyle === "dashed",
|
11237
11245
|
"border border-solid": borderStyle === "solid",
|
11238
|
-
"text-left": layout
|
11239
|
-
"text-center": layout
|
11246
|
+
"text-left": !isVerticalLayout(layout),
|
11247
|
+
"text-center": isVerticalLayout(layout),
|
11248
|
+
"h-full": fullHeight
|
11240
11249
|
})
|
11241
11250
|
),
|
11242
11251
|
backgroundColor: "transparent",
|
11243
|
-
borderColor: "grey-10"
|
11244
|
-
|
11245
|
-
|
11246
|
-
|
11252
|
+
borderColor: "grey-10"
|
11253
|
+
}, /* @__PURE__ */ import_react78.default.createElement(Box.Flex, {
|
11254
|
+
style: { gap: "56px" },
|
11255
|
+
flexDirection: template.layout,
|
11247
11256
|
justifyContent: template.justifyContent,
|
11248
11257
|
alignItems: template.layout === "row" ? "center" : template.alignItems,
|
11249
|
-
|
11250
|
-
|
11251
|
-
}, image && /* @__PURE__ */ import_react79.default.createElement(FlexboxItem, null, /* @__PURE__ */ import_react79.default.createElement("img", {
|
11258
|
+
height: fullHeight ? "full" : void 0
|
11259
|
+
}, image && /* @__PURE__ */ import_react78.default.createElement("img", {
|
11252
11260
|
src: image,
|
11253
11261
|
alt: imageAlt,
|
11254
11262
|
style: { width: imageWidth ? `${imageWidth}px` : void 0, height: "auto" }
|
11255
|
-
})
|
11256
|
-
|
11257
|
-
direction: "column",
|
11263
|
+
}), /* @__PURE__ */ import_react78.default.createElement(Box.Flex, {
|
11264
|
+
flexDirection: "column",
|
11258
11265
|
justifyContent: template.justifyContent,
|
11259
11266
|
alignItems: template.alignItems
|
11260
|
-
}, /* @__PURE__ */
|
11261
|
-
variant: "heading",
|
11267
|
+
}, /* @__PURE__ */ import_react78.default.createElement(Typography2.Heading, {
|
11262
11268
|
htmlTag: "h2"
|
11263
|
-
}, title), (description || children) && /* @__PURE__ */
|
11269
|
+
}, title), (description || children) && /* @__PURE__ */ import_react78.default.createElement(Box, {
|
11264
11270
|
marginTop: "5"
|
11265
|
-
}, /* @__PURE__ */
|
11266
|
-
variant: "default",
|
11271
|
+
}, /* @__PURE__ */ import_react78.default.createElement(Typography2.Default, {
|
11267
11272
|
color: "grey-60"
|
11268
|
-
}, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */
|
11273
|
+
}, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ import_react78.default.createElement(Box.Flex, {
|
11269
11274
|
marginTop: "7",
|
11270
11275
|
gap: "4",
|
11271
11276
|
justifyContent: "center",
|
11272
11277
|
alignItems: "center",
|
11273
11278
|
wrap: "wrap"
|
11274
|
-
}, primaryAction && /* @__PURE__ */
|
11279
|
+
}, primaryAction && /* @__PURE__ */ import_react78.default.createElement(import_react78.default.Fragment, null, !isLink(primaryAction) && /* @__PURE__ */ import_react78.default.createElement(Button.Primary, __spreadValues({}, (0, import_omit9.default)(primaryAction, "text")), primaryAction.text), isLink(primaryAction) && /* @__PURE__ */ import_react78.default.createElement(Button.ExternalLink, __spreadValues({
|
11275
11280
|
kind: "primary"
|
11276
|
-
}, (0, import_omit9.default)(primaryAction, "text")), primaryAction.text)), secondaryAction && /* @__PURE__ */
|
11281
|
+
}, (0, import_omit9.default)(primaryAction, "text")), primaryAction.text)), secondaryAction && /* @__PURE__ */ import_react78.default.createElement(import_react78.default.Fragment, null, !isLink(secondaryAction) && /* @__PURE__ */ import_react78.default.createElement(Button.Secondary, __spreadValues({}, (0, import_omit9.default)(secondaryAction, "text")), secondaryAction.text), isLink(secondaryAction) && /* @__PURE__ */ import_react78.default.createElement(Button.ExternalLink, __spreadValues({
|
11277
11282
|
kind: "secondary"
|
11278
|
-
}, (0, import_omit9.default)(secondaryAction, "text")), secondaryAction.text))), footer && /* @__PURE__ */
|
11279
|
-
marginTop: "
|
11280
|
-
}, /* @__PURE__ */
|
11281
|
-
htmlTag: "div",
|
11282
|
-
variant: "small",
|
11283
|
+
}, (0, import_omit9.default)(secondaryAction, "text")), secondaryAction.text))), footer && /* @__PURE__ */ import_react78.default.createElement(Box, {
|
11284
|
+
marginTop: "5"
|
11285
|
+
}, /* @__PURE__ */ import_react78.default.createElement(Typography2.Small, {
|
11283
11286
|
color: "grey-60"
|
11284
11287
|
}, footer)))));
|
11285
11288
|
};
|
11286
11289
|
|
11290
|
+
// src/molecules/Flexbox/FlexboxItem.tsx
|
11291
|
+
var import_react79 = __toESM(require("react"));
|
11292
|
+
var FlexboxItem = Tailwindify(
|
11293
|
+
({ htmlTag = "div", className, style, children, display, flex, grow, shrink, order, alignSelf }) => {
|
11294
|
+
const hookStyle = useStyle({
|
11295
|
+
display,
|
11296
|
+
flex,
|
11297
|
+
flexGrow: grow,
|
11298
|
+
flexShrink: shrink,
|
11299
|
+
order,
|
11300
|
+
alignSelf
|
11301
|
+
});
|
11302
|
+
const HtmlElement = htmlTag;
|
11303
|
+
return /* @__PURE__ */ import_react79.default.createElement(HtmlElement, {
|
11304
|
+
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
11305
|
+
className
|
11306
|
+
}, children);
|
11307
|
+
}
|
11308
|
+
);
|
11309
|
+
|
11287
11310
|
// src/molecules/Grid/GridItem.tsx
|
11288
11311
|
var import_react80 = __toESM(require("react"));
|
11289
11312
|
var GridItem = Tailwindify(
|
package/dist/system.mjs
CHANGED
@@ -3561,7 +3561,7 @@ var require_loading = __commonJS({
|
|
3561
3561
|
"src/icons/loading.js"(exports) {
|
3562
3562
|
"use strict";
|
3563
3563
|
var data = {
|
3564
|
-
"body": '<g fill="none" fill-rule="evenodd" stroke="currentColor" stroke-width="
|
3564
|
+
"body": '<g fill="none" fill-rule="evenodd" stroke="currentColor" stroke-width="3" transform="translate(1 1)"><circle cx="18" cy="18" r="18" stroke-opacity=".5"/><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" dur="1s" from="0 18 18" repeatCount="indefinite" to="360 18 18" type="rotate"/></path></g>',
|
3565
3565
|
"left": 0,
|
3566
3566
|
"top": 0,
|
3567
3567
|
"width": 38,
|
@@ -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());
|
@@ -9160,6 +9177,7 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React47.crea
|
|
9160
9177
|
marginLeft: "auto",
|
9161
9178
|
marginRight: "auto",
|
9162
9179
|
width: "full",
|
9180
|
+
height: "full",
|
9163
9181
|
className: tw({
|
9164
9182
|
"max-w-screen-xl": maxWidth === "xl",
|
9165
9183
|
"max-w-screen-lg": maxWidth === "lg",
|
@@ -10376,7 +10394,9 @@ var DataList2 = ({
|
|
10376
10394
|
rows: _rows,
|
10377
10395
|
sticky,
|
10378
10396
|
menu,
|
10379
|
-
menuLabel
|
10397
|
+
menuLabel,
|
10398
|
+
menuAriaLabel = menuLabel != null ? menuLabel : "Context menu",
|
10399
|
+
menuHeaderName = "Actions",
|
10380
10400
|
onAction,
|
10381
10401
|
onMenuOpenChange,
|
10382
10402
|
pagination: _pagination
|
@@ -10406,8 +10426,8 @@ var DataList2 = ({
|
|
10406
10426
|
}), column.headerName)
|
10407
10427
|
), menu && /* @__PURE__ */ React61.createElement(DataList.HeadCell, {
|
10408
10428
|
align: "right",
|
10409
|
-
"aria-label":
|
10410
|
-
}), /* @__PURE__ */ React61.createElement(List2, {
|
10429
|
+
"aria-label": menuAriaLabel
|
10430
|
+
}, menuHeaderName), /* @__PURE__ */ React61.createElement(List2, {
|
10411
10431
|
items: rows,
|
10412
10432
|
renderItem: (row, index) => /* @__PURE__ */ React61.createElement(DataList.Row, {
|
10413
10433
|
key: row.id
|
@@ -10424,7 +10444,7 @@ var DataList2 = ({
|
|
10424
10444
|
onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
|
10425
10445
|
onOpenChange: onMenuOpenChange
|
10426
10446
|
}, /* @__PURE__ */ React61.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React61.createElement(Button.Icon, {
|
10427
|
-
"aria-label":
|
10447
|
+
"aria-label": menuAriaLabel,
|
10428
10448
|
icon: import_more2.default
|
10429
10449
|
})), isFunction(menu) ? menu(row, index) : menu)))
|
10430
10450
|
}));
|
@@ -10490,7 +10510,9 @@ var DataTable = (_a) => {
|
|
10490
10510
|
layout = "auto",
|
10491
10511
|
sticky,
|
10492
10512
|
menu,
|
10493
|
-
menuLabel
|
10513
|
+
menuLabel,
|
10514
|
+
menuAriaLabel = menuLabel != null ? menuLabel : "Context menu",
|
10515
|
+
menuHeaderName = "Actions",
|
10494
10516
|
onAction,
|
10495
10517
|
onMenuOpenChange,
|
10496
10518
|
pagination: _pagination
|
@@ -10502,6 +10524,8 @@ var DataTable = (_a) => {
|
|
10502
10524
|
"sticky",
|
10503
10525
|
"menu",
|
10504
10526
|
"menuLabel",
|
10527
|
+
"menuAriaLabel",
|
10528
|
+
"menuHeaderName",
|
10505
10529
|
"onAction",
|
10506
10530
|
"onMenuOpenChange",
|
10507
10531
|
"pagination"
|
@@ -10537,8 +10561,8 @@ var DataTable = (_a) => {
|
|
10537
10561
|
menu ? /* @__PURE__ */ React64.createElement(Table2.Cell, {
|
10538
10562
|
key: "__contextMenu",
|
10539
10563
|
align: "right",
|
10540
|
-
"aria-label":
|
10541
|
-
}) : null
|
10564
|
+
"aria-label": menuAriaLabel
|
10565
|
+
}, menuHeaderName) : null
|
10542
10566
|
])), /* @__PURE__ */ React64.createElement(Table2.Body, null, /* @__PURE__ */ React64.createElement(List2, {
|
10543
10567
|
items: rows,
|
10544
10568
|
renderItem: (row, index) => /* @__PURE__ */ React64.createElement(Table2.Row, {
|
@@ -10556,7 +10580,7 @@ var DataTable = (_a) => {
|
|
10556
10580
|
onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
|
10557
10581
|
onOpenChange: onMenuOpenChange
|
10558
10582
|
}, /* @__PURE__ */ React64.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React64.createElement(Button.Icon, {
|
10559
|
-
"aria-label":
|
10583
|
+
"aria-label": menuAriaLabel,
|
10560
10584
|
icon: import_more3.default
|
10561
10585
|
})), isFunction2(menu) ? menu(row, index) : menu)))
|
10562
10586
|
})));
|
@@ -11012,31 +11036,11 @@ Dropdown.Menu = DropdownMenu3;
|
|
11012
11036
|
Dropdown.Item = DropdownItem;
|
11013
11037
|
|
11014
11038
|
// src/molecules/EmptyState/EmptyState.tsx
|
11015
|
-
import React72 from "react";
|
11016
|
-
import omit10 from "lodash/omit";
|
11017
|
-
|
11018
|
-
// src/molecules/Flexbox/FlexboxItem.tsx
|
11019
11039
|
import React71 from "react";
|
11020
|
-
|
11021
|
-
({ htmlTag = "div", className, style, children, display, flex, grow, shrink, order, alignSelf }) => {
|
11022
|
-
const hookStyle = useStyle({
|
11023
|
-
display,
|
11024
|
-
flex,
|
11025
|
-
flexGrow: grow,
|
11026
|
-
flexShrink: shrink,
|
11027
|
-
order,
|
11028
|
-
alignSelf
|
11029
|
-
});
|
11030
|
-
const HtmlElement = htmlTag;
|
11031
|
-
return /* @__PURE__ */ React71.createElement(HtmlElement, {
|
11032
|
-
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
11033
|
-
className
|
11034
|
-
}, children);
|
11035
|
-
}
|
11036
|
-
);
|
11037
|
-
|
11038
|
-
// src/molecules/EmptyState/EmptyState.tsx
|
11040
|
+
import omit10 from "lodash/omit";
|
11039
11041
|
var EmptyStateLayout = /* @__PURE__ */ ((EmptyStateLayout2) => {
|
11042
|
+
EmptyStateLayout2["Vertical"] = "vertical";
|
11043
|
+
EmptyStateLayout2["Horizontal"] = "horizontal";
|
11040
11044
|
EmptyStateLayout2["CenterVertical"] = "center-vertical";
|
11041
11045
|
EmptyStateLayout2["LeftVertical"] = "left-vertical";
|
11042
11046
|
EmptyStateLayout2["CenterHorizontal"] = "center-horizontal";
|
@@ -11052,6 +11056,7 @@ var layoutStyle = (layout) => {
|
|
11052
11056
|
alignItems: "flex-start"
|
11053
11057
|
};
|
11054
11058
|
case "left-horizontal" /* LeftHorizontal */:
|
11059
|
+
case "horizontal" /* Horizontal */:
|
11055
11060
|
return {
|
11056
11061
|
layout: "row",
|
11057
11062
|
justifyContent: "flex-start",
|
@@ -11064,6 +11069,7 @@ var layoutStyle = (layout) => {
|
|
11064
11069
|
alignItems: "flex-start"
|
11065
11070
|
};
|
11066
11071
|
case "center-vertical" /* CenterVertical */:
|
11072
|
+
case "vertical" /* Vertical */:
|
11067
11073
|
default:
|
11068
11074
|
return {
|
11069
11075
|
layout: "column",
|
@@ -11072,6 +11078,7 @@ var layoutStyle = (layout) => {
|
|
11072
11078
|
};
|
11073
11079
|
}
|
11074
11080
|
};
|
11081
|
+
var isVerticalLayout = (layout) => layout === "vertical" /* Vertical */ || layout === "center-vertical" /* CenterVertical */;
|
11075
11082
|
var EmptyState = ({
|
11076
11083
|
title,
|
11077
11084
|
image,
|
@@ -11082,65 +11089,81 @@ var EmptyState = ({
|
|
11082
11089
|
primaryAction,
|
11083
11090
|
secondaryAction,
|
11084
11091
|
footer,
|
11085
|
-
layout = "
|
11086
|
-
borderStyle = "dashed"
|
11092
|
+
layout = "vertical" /* Vertical */,
|
11093
|
+
borderStyle = "dashed",
|
11094
|
+
fullHeight = isVerticalLayout(layout) ? true : false
|
11087
11095
|
}) => {
|
11088
11096
|
const template = layoutStyle(layout);
|
11089
|
-
return /* @__PURE__ */
|
11097
|
+
return /* @__PURE__ */ React71.createElement(Box, {
|
11090
11098
|
className: classNames(
|
11091
11099
|
"Aquarium-EmptyState",
|
11092
|
-
tw("rounded", {
|
11100
|
+
tw("rounded p-[56px]", {
|
11093
11101
|
"border border-dashed": borderStyle === "dashed",
|
11094
11102
|
"border border-solid": borderStyle === "solid",
|
11095
|
-
"text-left": layout
|
11096
|
-
"text-center": layout
|
11103
|
+
"text-left": !isVerticalLayout(layout),
|
11104
|
+
"text-center": isVerticalLayout(layout),
|
11105
|
+
"h-full": fullHeight
|
11097
11106
|
})
|
11098
11107
|
),
|
11099
11108
|
backgroundColor: "transparent",
|
11100
|
-
borderColor: "grey-10"
|
11101
|
-
|
11102
|
-
|
11103
|
-
|
11109
|
+
borderColor: "grey-10"
|
11110
|
+
}, /* @__PURE__ */ React71.createElement(Box.Flex, {
|
11111
|
+
style: { gap: "56px" },
|
11112
|
+
flexDirection: template.layout,
|
11104
11113
|
justifyContent: template.justifyContent,
|
11105
11114
|
alignItems: template.layout === "row" ? "center" : template.alignItems,
|
11106
|
-
|
11107
|
-
|
11108
|
-
}, image && /* @__PURE__ */ React72.createElement(FlexboxItem, null, /* @__PURE__ */ React72.createElement("img", {
|
11115
|
+
height: fullHeight ? "full" : void 0
|
11116
|
+
}, image && /* @__PURE__ */ React71.createElement("img", {
|
11109
11117
|
src: image,
|
11110
11118
|
alt: imageAlt,
|
11111
11119
|
style: { width: imageWidth ? `${imageWidth}px` : void 0, height: "auto" }
|
11112
|
-
})
|
11113
|
-
|
11114
|
-
direction: "column",
|
11120
|
+
}), /* @__PURE__ */ React71.createElement(Box.Flex, {
|
11121
|
+
flexDirection: "column",
|
11115
11122
|
justifyContent: template.justifyContent,
|
11116
11123
|
alignItems: template.alignItems
|
11117
|
-
}, /* @__PURE__ */
|
11118
|
-
variant: "heading",
|
11124
|
+
}, /* @__PURE__ */ React71.createElement(Typography2.Heading, {
|
11119
11125
|
htmlTag: "h2"
|
11120
|
-
}, title), (description || children) && /* @__PURE__ */
|
11126
|
+
}, title), (description || children) && /* @__PURE__ */ React71.createElement(Box, {
|
11121
11127
|
marginTop: "5"
|
11122
|
-
}, /* @__PURE__ */
|
11123
|
-
variant: "default",
|
11128
|
+
}, /* @__PURE__ */ React71.createElement(Typography2.Default, {
|
11124
11129
|
color: "grey-60"
|
11125
|
-
}, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */
|
11130
|
+
}, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React71.createElement(Box.Flex, {
|
11126
11131
|
marginTop: "7",
|
11127
11132
|
gap: "4",
|
11128
11133
|
justifyContent: "center",
|
11129
11134
|
alignItems: "center",
|
11130
11135
|
wrap: "wrap"
|
11131
|
-
}, primaryAction && /* @__PURE__ */
|
11136
|
+
}, primaryAction && /* @__PURE__ */ React71.createElement(React71.Fragment, null, !isLink(primaryAction) && /* @__PURE__ */ React71.createElement(Button.Primary, __spreadValues({}, omit10(primaryAction, "text")), primaryAction.text), isLink(primaryAction) && /* @__PURE__ */ React71.createElement(Button.ExternalLink, __spreadValues({
|
11132
11137
|
kind: "primary"
|
11133
|
-
}, omit10(primaryAction, "text")), primaryAction.text)), secondaryAction && /* @__PURE__ */
|
11138
|
+
}, omit10(primaryAction, "text")), primaryAction.text)), secondaryAction && /* @__PURE__ */ React71.createElement(React71.Fragment, null, !isLink(secondaryAction) && /* @__PURE__ */ React71.createElement(Button.Secondary, __spreadValues({}, omit10(secondaryAction, "text")), secondaryAction.text), isLink(secondaryAction) && /* @__PURE__ */ React71.createElement(Button.ExternalLink, __spreadValues({
|
11134
11139
|
kind: "secondary"
|
11135
|
-
}, omit10(secondaryAction, "text")), secondaryAction.text))), footer && /* @__PURE__ */
|
11136
|
-
marginTop: "
|
11137
|
-
}, /* @__PURE__ */
|
11138
|
-
htmlTag: "div",
|
11139
|
-
variant: "small",
|
11140
|
+
}, omit10(secondaryAction, "text")), secondaryAction.text))), footer && /* @__PURE__ */ React71.createElement(Box, {
|
11141
|
+
marginTop: "5"
|
11142
|
+
}, /* @__PURE__ */ React71.createElement(Typography2.Small, {
|
11140
11143
|
color: "grey-60"
|
11141
11144
|
}, footer)))));
|
11142
11145
|
};
|
11143
11146
|
|
11147
|
+
// src/molecules/Flexbox/FlexboxItem.tsx
|
11148
|
+
import React72 from "react";
|
11149
|
+
var FlexboxItem = Tailwindify(
|
11150
|
+
({ htmlTag = "div", className, style, children, display, flex, grow, shrink, order, alignSelf }) => {
|
11151
|
+
const hookStyle = useStyle({
|
11152
|
+
display,
|
11153
|
+
flex,
|
11154
|
+
flexGrow: grow,
|
11155
|
+
flexShrink: shrink,
|
11156
|
+
order,
|
11157
|
+
alignSelf
|
11158
|
+
});
|
11159
|
+
const HtmlElement = htmlTag;
|
11160
|
+
return /* @__PURE__ */ React72.createElement(HtmlElement, {
|
11161
|
+
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
11162
|
+
className
|
11163
|
+
}, children);
|
11164
|
+
}
|
11165
|
+
);
|
11166
|
+
|
11144
11167
|
// src/molecules/Grid/GridItem.tsx
|
11145
11168
|
import React73 from "react";
|
11146
11169
|
var GridItem = Tailwindify(
|