@aivenio/aquarium 1.15.0 → 1.16.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.mjs CHANGED
@@ -3133,31 +3133,36 @@ var PrimaryButton = React7.forwardRef((props, ref) => /* @__PURE__ */ React7.cre
3133
3133
  }, props), {
3134
3134
  kind: "primary"
3135
3135
  })));
3136
- PrimaryButton.displayName = "PrimaryButton";
3136
+ PrimaryButton.displayName = "Button.Primary";
3137
+ Button.Primary = PrimaryButton;
3137
3138
  var SecondaryButton = React7.forwardRef((props, ref) => /* @__PURE__ */ React7.createElement(Button, __spreadProps(__spreadValues({
3138
3139
  ref
3139
3140
  }, props), {
3140
3141
  kind: "secondary"
3141
3142
  })));
3142
- SecondaryButton.displayName = "SecondaryButton";
3143
+ SecondaryButton.displayName = "Button.Secondary";
3144
+ Button.Secondary = SecondaryButton;
3143
3145
  var GhostButton = React7.forwardRef((props, ref) => /* @__PURE__ */ React7.createElement(Button, __spreadProps(__spreadValues({
3144
3146
  ref
3145
3147
  }, props), {
3146
3148
  kind: "ghost"
3147
3149
  })));
3148
- GhostButton.displayName = "GhostButton";
3150
+ GhostButton.displayName = "Button.Ghost";
3151
+ Button.Ghost = GhostButton;
3149
3152
  var SecondaryGhostButton = React7.forwardRef((props, ref) => /* @__PURE__ */ React7.createElement(Button, __spreadProps(__spreadValues({
3150
3153
  ref
3151
3154
  }, props), {
3152
3155
  kind: "secondary-ghost"
3153
3156
  })));
3154
- SecondaryGhostButton.displayName = "SecondaryGhostButton";
3157
+ SecondaryGhostButton.displayName = "Button.SecondaryGhost";
3158
+ Button.SecondaryGhost = SecondaryGhostButton;
3155
3159
  var TextButton = React7.forwardRef((props, ref) => /* @__PURE__ */ React7.createElement(Button, __spreadProps(__spreadValues({
3156
3160
  ref
3157
3161
  }, props), {
3158
3162
  kind: "text"
3159
3163
  })));
3160
- TextButton.displayName = "TextButton";
3164
+ TextButton.displayName = "Button.Text";
3165
+ Button.Text = TextButton;
3161
3166
  var IconButton = React7.forwardRef((props, ref) => /* @__PURE__ */ React7.createElement(Button, __spreadProps(__spreadValues({
3162
3167
  ref
3163
3168
  }, props), {
@@ -3165,8 +3170,11 @@ var IconButton = React7.forwardRef((props, ref) => /* @__PURE__ */ React7.create
3165
3170
  loading: false,
3166
3171
  fullWidth: false
3167
3172
  })));
3168
- IconButton.displayName = "IconButton";
3173
+ IconButton.displayName = "Button.Icon";
3174
+ Button.Icon = IconButton;
3169
3175
  var ExternalLinkButton = asButton("a");
3176
+ ExternalLinkButton.displayName = "Button.ExternalLink";
3177
+ Button.ExternalLink = ExternalLinkButton;
3170
3178
  var IconExternalLinkButton = React7.forwardRef((props, ref) => /* @__PURE__ */ React7.createElement(ExternalLinkButton, __spreadProps(__spreadValues({
3171
3179
  ref
3172
3180
  }, props), {
@@ -3174,20 +3182,25 @@ var IconExternalLinkButton = React7.forwardRef((props, ref) => /* @__PURE__ */ R
3174
3182
  loading: false,
3175
3183
  fullWidth: false
3176
3184
  })));
3177
- IconExternalLinkButton.displayName = "IconExternalLink";
3185
+ IconExternalLinkButton.displayName = "Button.IconExternalLink";
3186
+ Button.IconExternalLink = IconExternalLinkButton;
3178
3187
  var DropdownButton = asButton("button", true);
3188
+ DropdownButton.displayName = "Button.Dropdown";
3189
+ Button.Dropdown = DropdownButton;
3179
3190
  var PrimaryDropdownButton = React7.forwardRef((props, ref) => /* @__PURE__ */ React7.createElement(DropdownButton, __spreadProps(__spreadValues({
3180
3191
  ref
3181
3192
  }, props), {
3182
3193
  kind: "primary"
3183
3194
  })));
3184
- PrimaryDropdownButton.displayName = "PrimaryDropdownButton";
3195
+ PrimaryDropdownButton.displayName = "Button.PrimaryDropdown";
3196
+ Button.PrimaryDropdown = PrimaryDropdownButton;
3185
3197
  var SecondaryDropdownButton = React7.forwardRef((props, ref) => /* @__PURE__ */ React7.createElement(DropdownButton, __spreadProps(__spreadValues({
3186
3198
  ref
3187
3199
  }, props), {
3188
3200
  kind: "secondary"
3189
3201
  })));
3190
- SecondaryDropdownButton.displayName = "SecondaryDropdownButton";
3202
+ SecondaryDropdownButton.displayName = "Button.SecondaryDropdown";
3203
+ Button.SecondaryDropdown = SecondaryDropdownButton;
3191
3204
 
3192
3205
  // src/atoms/Alert/Alert.tsx
3193
3206
  import React9 from "react";
@@ -3326,9 +3339,9 @@ var Alert2 = ({ description, type, title, onDismiss, children, action }) => /* @
3326
3339
  }, /* @__PURE__ */ React10.createElement(Alert.Icon, {
3327
3340
  type,
3328
3341
  dense: Boolean(title)
3329
- }), title && /* @__PURE__ */ React10.createElement(Alert.Title, null, title), /* @__PURE__ */ React10.createElement(Alert.Description, null, children || description), action && /* @__PURE__ */ React10.createElement(Alert.Actions, null, !isLink(action) && /* @__PURE__ */ React10.createElement(GhostButton, __spreadValues({
3342
+ }), title && /* @__PURE__ */ React10.createElement(Alert.Title, null, title), /* @__PURE__ */ React10.createElement(Alert.Description, null, children || description), action && /* @__PURE__ */ React10.createElement(Alert.Actions, null, !isLink(action) && /* @__PURE__ */ React10.createElement(Button.Ghost, __spreadValues({
3330
3343
  dense: true
3331
- }, omit(action, "text")), action.text), isLink(action) && /* @__PURE__ */ React10.createElement(ExternalLinkButton, __spreadValues({
3344
+ }, omit(action, "text")), action.text), isLink(action) && /* @__PURE__ */ React10.createElement(Button.ExternalLink, __spreadValues({
3332
3345
  dense: true,
3333
3346
  kind: "ghost"
3334
3347
  }, omit(action, "text")), action.text)), onDismiss && /* @__PURE__ */ React10.createElement(Alert.Dismiss, {
@@ -3725,7 +3738,7 @@ var createBanner = (displayName, opts = {}) => {
3725
3738
  flexGrow: isDismissable ? false : true
3726
3739
  }, children || description), action && /* @__PURE__ */ React18.createElement(Banner.Actions, {
3727
3740
  layout
3728
- }, /* @__PURE__ */ React18.createElement(GhostButton, __spreadValues({
3741
+ }, /* @__PURE__ */ React18.createElement(Button.Ghost, __spreadValues({
3729
3742
  dense: true
3730
3743
  }, omit3(action, "text")), action.text))), (props.layout === "vertical" || props.layout === void 0) && props.image !== void 0 && /* @__PURE__ */ React18.createElement(Banner.ImageContainer, null, props.image ? /* @__PURE__ */ React18.createElement("img", {
3731
3744
  src: props.image,
@@ -3734,7 +3747,7 @@ var createBanner = (displayName, opts = {}) => {
3734
3747
  style: { width: props.imageWidth, height: props.imageHeight }
3735
3748
  }) : /* @__PURE__ */ React18.createElement(BannerImageSkeleton, null)), isDismissable && /* @__PURE__ */ React18.createElement(Banner.DismissContainer, {
3736
3749
  layout
3737
- }, /* @__PURE__ */ React18.createElement(IconButton, {
3750
+ }, /* @__PURE__ */ React18.createElement(Button.Icon, {
3738
3751
  type: "button",
3739
3752
  tooltip: "Dismiss",
3740
3753
  icon: import_cross2.default,
@@ -4172,9 +4185,9 @@ var CompactCard = ({
4172
4185
  color: "grey-70"
4173
4186
  }, children))), (action || link) && /* @__PURE__ */ React25.createElement(Card.Actions, {
4174
4187
  dense: true
4175
- }, action && /* @__PURE__ */ React25.createElement(SecondaryButton, __spreadValues({
4188
+ }, action && /* @__PURE__ */ React25.createElement(Button.Secondary, __spreadValues({
4176
4189
  dense: true
4177
- }, omit4(action, "text")), action.text), link && /* @__PURE__ */ React25.createElement(ExternalLinkButton, __spreadValues({
4190
+ }, omit4(action, "text")), action.text), link && /* @__PURE__ */ React25.createElement(Button.ExternalLink, __spreadValues({
4178
4191
  dense: true,
4179
4192
  kind: "ghost"
4180
4193
  }, omit4(link, "text")), link.text)));
@@ -4266,9 +4279,9 @@ var Card2 = ({
4266
4279
  wordBreak: "break-all"
4267
4280
  }, titleContent) : titleContent, /* @__PURE__ */ React26.createElement(Typography2.Caption, {
4268
4281
  color: "grey-70"
4269
- }, children || description)), (action || link) && /* @__PURE__ */ React26.createElement(Card.Actions, null, action && /* @__PURE__ */ React26.createElement(SecondaryButton, __spreadValues({
4282
+ }, children || description)), (action || link) && /* @__PURE__ */ React26.createElement(Card.Actions, null, action && /* @__PURE__ */ React26.createElement(Button.Secondary, __spreadValues({
4270
4283
  dense: true
4271
- }, omit5(action, "text")), action.text), link && /* @__PURE__ */ React26.createElement(ExternalLinkButton, __spreadValues({
4284
+ }, omit5(action, "text")), action.text), link && /* @__PURE__ */ React26.createElement(Button.ExternalLink, __spreadValues({
4272
4285
  dense: true,
4273
4286
  kind: "ghost"
4274
4287
  }, omit5(link, "text")), link.text)));
@@ -6048,14 +6061,14 @@ var DataList2 = ({
6048
6061
  items: columns,
6049
6062
  renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React52.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React52.createElement(StatusChip, __spreadValues({
6050
6063
  dense: true
6051
- }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React52.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React52.createElement(SecondaryButton, __spreadValues({
6064
+ }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React52.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React52.createElement(Button.Secondary, __spreadValues({
6052
6065
  dense: true
6053
6066
  }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React52.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React52.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React52.createElement(Item4, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React52.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
6054
6067
  }), menu && /* @__PURE__ */ React52.createElement(DataList.Cell, {
6055
6068
  align: "right"
6056
6069
  }, /* @__PURE__ */ React52.createElement(DropdownMenu2, {
6057
6070
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index)
6058
- }, /* @__PURE__ */ React52.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React52.createElement(IconButton, {
6071
+ }, /* @__PURE__ */ React52.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React52.createElement(Button.Icon, {
6059
6072
  "aria-label": "menu",
6060
6073
  icon: import_more.default
6061
6074
  })), isFunction(menu) ? menu(row, index) : menu)))
@@ -6164,14 +6177,14 @@ var DataTable = (_a) => {
6164
6177
  items: columns,
6165
6178
  renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React55.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React55.createElement(StatusChip, __spreadValues({
6166
6179
  dense: true
6167
- }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React55.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React55.createElement(SecondaryButton, __spreadValues({
6180
+ }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React55.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React55.createElement(Button.Secondary, __spreadValues({
6168
6181
  dense: true
6169
6182
  }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React55.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React55.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React55.createElement(Item4, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React55.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
6170
6183
  }), menu && /* @__PURE__ */ React55.createElement(Table2.Cell, {
6171
6184
  align: "right"
6172
6185
  }, /* @__PURE__ */ React55.createElement(DropdownMenu2, {
6173
6186
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index)
6174
- }, /* @__PURE__ */ React55.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React55.createElement(IconButton, {
6187
+ }, /* @__PURE__ */ React55.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React55.createElement(Button.Icon, {
6175
6188
  "aria-label": "menu",
6176
6189
  icon: import_more2.default
6177
6190
  })), isFunction2(menu) ? menu(row, index) : menu)))
@@ -6350,9 +6363,9 @@ var DialogWrapper = ({
6350
6363
  color: DIALOG_ICONS_AND_COLORS[type].color
6351
6364
  }, title)), /* @__PURE__ */ React57.createElement(Modal.Body, {
6352
6365
  id: describedBy
6353
- }, children), /* @__PURE__ */ React57.createElement(Modal.Footer, null, /* @__PURE__ */ React57.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React57.createElement(GhostButton, __spreadValues({
6366
+ }, children), /* @__PURE__ */ React57.createElement(Modal.Footer, null, /* @__PURE__ */ React57.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React57.createElement(Button.Ghost, __spreadValues({
6354
6367
  key: secondaryAction.text
6355
- }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React57.createElement(SecondaryButton, __spreadValues({
6368
+ }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React57.createElement(Button.Secondary, __spreadValues({
6356
6369
  key: primaryAction.text
6357
6370
  }, omit8(primaryAction, "text")), primaryAction.text))));
6358
6371
  };
@@ -6734,7 +6747,7 @@ var EmptyState = ({
6734
6747
  justifyContent: "center",
6735
6748
  alignItems: "center",
6736
6749
  wrap: "wrap"
6737
- }, primaryAction && /* @__PURE__ */ React63.createElement(PrimaryButton, __spreadValues({}, omit9(primaryAction, "text")), primaryAction.text), secondaryAction && /* @__PURE__ */ React63.createElement(SecondaryButton, __spreadValues({}, omit9(secondaryAction, "text")), secondaryAction.text)), footer && /* @__PURE__ */ React63.createElement(Box, {
6750
+ }, primaryAction && /* @__PURE__ */ React63.createElement(Button.Primary, __spreadValues({}, omit9(primaryAction, "text")), primaryAction.text), secondaryAction && /* @__PURE__ */ React63.createElement(Button.Secondary, __spreadValues({}, omit9(secondaryAction, "text")), secondaryAction.text)), footer && /* @__PURE__ */ React63.createElement(Box, {
6738
6751
  marginTop: "7"
6739
6752
  }, /* @__PURE__ */ React63.createElement(Typography2, {
6740
6753
  htmlTag: "div",
@@ -6809,7 +6822,7 @@ var LineClamp2 = ({
6809
6822
  lines,
6810
6823
  clamped,
6811
6824
  wordBreak
6812
- }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React65.createElement(GhostButton, {
6825
+ }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React65.createElement(Button.Ghost, {
6813
6826
  dense: true,
6814
6827
  onClick: handleClampedChange
6815
6828
  }, clamped ? expandLabel : collapseLabel));
@@ -7208,10 +7221,10 @@ var ModalWrapper = React71.forwardRef(
7208
7221
  noFooter: !(secondaryActions || primaryAction)
7209
7222
  }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React71.createElement(Modal.Footer, null, /* @__PURE__ */ React71.createElement(Modal.Actions, null, secondaryActions && castArray(secondaryActions).filter(Boolean).map((_a2) => {
7210
7223
  var _b2 = _a2, { text } = _b2, action = __objRest(_b2, ["text"]);
7211
- return /* @__PURE__ */ React71.createElement(SecondaryButton, __spreadValues({
7224
+ return /* @__PURE__ */ React71.createElement(Button.Secondary, __spreadValues({
7212
7225
  key: text
7213
7226
  }, action), text);
7214
- }), primaryAction && /* @__PURE__ */ React71.createElement(PrimaryButton, __spreadValues({
7227
+ }), primaryAction && /* @__PURE__ */ React71.createElement(Button.Primary, __spreadValues({
7215
7228
  key: primaryAction.text
7216
7229
  }, omit10(primaryAction, "text")), primaryAction.text))));
7217
7230
  }
@@ -7975,10 +7988,10 @@ var PageHeader2 = ({
7975
7988
  text: chip
7976
7989
  }))), subtitle && /* @__PURE__ */ React79.createElement(PageHeader.Subtitle, null, subtitle)))), (secondaryActions || primaryAction) && /* @__PURE__ */ React79.createElement(PageHeader.Actions, null, secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_a) => {
7977
7990
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
7978
- return /* @__PURE__ */ React79.createElement(SecondaryButton, __spreadValues({
7991
+ return /* @__PURE__ */ React79.createElement(Button.Secondary, __spreadValues({
7979
7992
  key: text
7980
7993
  }, action), text);
7981
- }), primaryAction && /* @__PURE__ */ React79.createElement(PrimaryButton, __spreadValues({
7994
+ }), primaryAction && /* @__PURE__ */ React79.createElement(Button.Primary, __spreadValues({
7982
7995
  key: primaryAction.text
7983
7996
  }, omit14(primaryAction, "text")), primaryAction.text)));
7984
7997
  };
@@ -8653,7 +8666,7 @@ Section3.Body = (_a) => {
8653
8666
  // src/molecules/Section/Section.tsx
8654
8667
  var Section4 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React89.createElement(Section3, null, title && /* @__PURE__ */ React89.createElement(React89.Fragment, null, /* @__PURE__ */ React89.createElement(Section3.Header, null, /* @__PURE__ */ React89.createElement(Section3.TitleContainer, null, /* @__PURE__ */ React89.createElement(Section3.Title, null, title), subtitle && /* @__PURE__ */ React89.createElement(Section3.Subtitle, null, subtitle)), /* @__PURE__ */ React89.createElement(Section3.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
8655
8668
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
8656
- return /* @__PURE__ */ React89.createElement(SecondaryButton, __spreadValues({
8669
+ return /* @__PURE__ */ React89.createElement(Button.Secondary, __spreadValues({
8657
8670
  key: text
8658
8671
  }, action), text);
8659
8672
  }))), /* @__PURE__ */ React89.createElement(Divider2, null)), /* @__PURE__ */ React89.createElement(Section3.Body, null, children));