@aivenio/aquarium 1.29.0 → 1.31.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
@@ -166,8 +166,7 @@ var require_tokens = __commonJS({
166
166
  "primary-20": "#b4e5fb",
167
167
  "primary-10": "#e0f5fe",
168
168
  "primary-5": "#effaff",
169
- "primary-0": "#f9fdff",
170
- "navyBlue-100": "#30375e"
169
+ "primary-0": "#f9fdff"
171
170
  },
172
171
  typography: {
173
172
  sizes: [
@@ -700,6 +699,7 @@ var require_tokens = __commonJS({
700
699
  "grey-50": "#787885",
701
700
  "grey-40": "#9696a0",
702
701
  "grey-30": "#b4b4bb",
702
+ "grey-20": "#d2d2d6",
703
703
  "grey-10": "#e1e1e3",
704
704
  "grey-5": "#ededf0",
705
705
  "grey-0": "#f7f7fa",
@@ -715,20 +715,18 @@ var require_tokens = __commonJS({
715
715
  "secondary-10": "#fee8d0",
716
716
  "secondary-5": "#fff3e8",
717
717
  "secondary-0": "#fffbf8",
718
- "primary-100": "#a70045",
719
- "primary-90": "#c60443",
720
- "primary-80": "#e41a4a",
721
- "primary-70": "#ff3554",
722
- "primary-60": "#ff5275",
723
- "primary-50": "#ff6f94",
724
- "primary-40": "#ff8db0",
725
- "primary-30": "#ffa9c9",
726
- "primary-20": "#ffc4de",
727
- "primary-10": "#ffdeef",
728
- "primary-5": "#ffe8f4",
729
- "primary-0": "#fff9fc",
730
- "grey-20": "#d2d2d6",
731
- "navyBlue-100": "#30375e"
718
+ "primary-100": "#0e1652",
719
+ "primary-90": "#222f95",
720
+ "primary-80": "#3545be",
721
+ "primary-70": "#5865cd",
722
+ "primary-60": "#818eec",
723
+ "primary-50": "#9daaee",
724
+ "primary-40": "#b9c5ef",
725
+ "primary-30": "#c7d1f4",
726
+ "primary-20": "#d5ddfa",
727
+ "primary-10": "#e3e9ff",
728
+ "primary-5": "#f3f6ff",
729
+ "primary-0": "#ffffff"
732
730
  },
733
731
  typography: {
734
732
  sizes: [
@@ -736,40 +734,40 @@ var require_tokens = __commonJS({
736
734
  name: "large-heading",
737
735
  className: "typography-large-heading",
738
736
  style: {
739
- fontFamily: "Inter",
737
+ fontFamily: "Poppins",
740
738
  fontSize: "32px",
741
739
  fontWeight: 700,
742
740
  fontStyle: "normal",
743
741
  lineHeight: 1.375,
744
742
  textTransform: "none"
745
743
  },
746
- fontPostScriptName: "Inter-Bold"
744
+ fontPostScriptName: "Poppins-Bold"
747
745
  },
748
746
  {
749
747
  name: "heading",
750
748
  className: "typography-heading",
751
749
  style: {
752
- fontFamily: "Inter",
750
+ fontFamily: "Poppins",
753
751
  fontSize: "24px",
754
752
  fontWeight: 700,
755
753
  fontStyle: "normal",
756
754
  lineHeight: 1.375,
757
755
  textTransform: "none"
758
756
  },
759
- fontPostScriptName: "Inter-Bold"
757
+ fontPostScriptName: "Poppins-Bold"
760
758
  },
761
759
  {
762
760
  name: "subheading",
763
761
  className: "typography-subheading",
764
762
  style: {
765
- fontFamily: "Inter",
763
+ fontFamily: "Poppins",
766
764
  fontSize: "20px",
767
765
  fontWeight: 600,
768
766
  fontStyle: "normal",
769
767
  lineHeight: 1.375,
770
768
  textTransform: "none"
771
769
  },
772
- fontPostScriptName: "Inter-Bold"
770
+ fontPostScriptName: "Poppins-Bold"
773
771
  },
774
772
  {
775
773
  name: "large-strong",
@@ -5803,6 +5801,7 @@ var tailwind_theme_default = {
5803
5801
  "grey-50": "var(--aquarium-colors-grey-50, #787885)",
5804
5802
  "grey-40": "var(--aquarium-colors-grey-40, #9696a0)",
5805
5803
  "grey-30": "var(--aquarium-colors-grey-30, #b4b4bb)",
5804
+ "grey-20": "var(--aquarium-colors-grey-20, #d2d2d6)",
5806
5805
  "grey-10": "var(--aquarium-colors-grey-10, #e1e1e3)",
5807
5806
  "grey-5": "var(--aquarium-colors-grey-5, #ededf0)",
5808
5807
  "grey-0": "var(--aquarium-colors-grey-0, #f7f7fa)",
@@ -5818,20 +5817,18 @@ var tailwind_theme_default = {
5818
5817
  "secondary-10": "var(--aquarium-colors-secondary-10, #fee8d0)",
5819
5818
  "secondary-5": "var(--aquarium-colors-secondary-5, #fff3e8)",
5820
5819
  "secondary-0": "var(--aquarium-colors-secondary-0, #fffbf8)",
5821
- "primary-100": "var(--aquarium-colors-primary-100, #a70045)",
5822
- "primary-90": "var(--aquarium-colors-primary-90, #c60443)",
5823
- "primary-80": "var(--aquarium-colors-primary-80, #e41a4a)",
5824
- "primary-70": "var(--aquarium-colors-primary-70, #ff3554)",
5825
- "primary-60": "var(--aquarium-colors-primary-60, #ff5275)",
5826
- "primary-50": "var(--aquarium-colors-primary-50, #ff6f94)",
5827
- "primary-40": "var(--aquarium-colors-primary-40, #ff8db0)",
5828
- "primary-30": "var(--aquarium-colors-primary-30, #ffa9c9)",
5829
- "primary-20": "var(--aquarium-colors-primary-20, #ffc4de)",
5830
- "primary-10": "var(--aquarium-colors-primary-10, #ffdeef)",
5831
- "primary-5": "var(--aquarium-colors-primary-5, #ffe8f4)",
5832
- "primary-0": "var(--aquarium-colors-primary-0, #fff9fc)",
5833
- "grey-20": "var(--aquarium-colors-grey-20, #d2d2d6)",
5834
- "navyBlue-100": "var(--aquarium-colors-navyBlue-100, #30375e)",
5820
+ "primary-100": "var(--aquarium-colors-primary-100, #0e1652)",
5821
+ "primary-90": "var(--aquarium-colors-primary-90, #222f95)",
5822
+ "primary-80": "var(--aquarium-colors-primary-80, #3545be)",
5823
+ "primary-70": "var(--aquarium-colors-primary-70, #5865cd)",
5824
+ "primary-60": "var(--aquarium-colors-primary-60, #818eec)",
5825
+ "primary-50": "var(--aquarium-colors-primary-50, #9daaee)",
5826
+ "primary-40": "var(--aquarium-colors-primary-40, #b9c5ef)",
5827
+ "primary-30": "var(--aquarium-colors-primary-30, #c7d1f4)",
5828
+ "primary-20": "var(--aquarium-colors-primary-20, #d5ddfa)",
5829
+ "primary-10": "var(--aquarium-colors-primary-10, #e3e9ff)",
5830
+ "primary-5": "var(--aquarium-colors-primary-5, #f3f6ff)",
5831
+ "primary-0": "var(--aquarium-colors-primary-0, #ffffff)",
5835
5832
  transparent: "var(--aquarium-colors-transparent, transparent)",
5836
5833
  white: "var(--aquarium-colors-white, white)",
5837
5834
  black: "var(--aquarium-colors-black, black)",
@@ -7152,9 +7149,12 @@ var getCommonInputStyles = ({ readOnly, valid }) => tw(
7152
7149
  }
7153
7150
  );
7154
7151
  var ghostButtonStyle = tw(
7155
- "text-primary-80 active:text-primary-70 focus-visible:text-grey-90 hover:text-primary-70 disabled:text-primary-40"
7152
+ "text-primary-80 active:text-primary-90 focus-visible:text-primary-90 hover:text-primary-90 disabled:text-primary-40"
7153
+ );
7154
+ var linkStyle = classNames(
7155
+ ghostButtonStyle,
7156
+ tw("visited:text-primary-80 no-underline hover:underline focusable")
7156
7157
  );
7157
- var linkStyle = classNames(ghostButtonStyle, tw("visited:text-primary-80 focusable"));
7158
7158
 
7159
7159
  // src/utils/string.ts
7160
7160
  var capitalize = (a) => a.charAt(0).toUpperCase() + a.slice(1);
@@ -7164,28 +7164,27 @@ var import_chevronDown3 = __toESM(require_chevronDown());
7164
7164
  var import_loading2 = __toESM(require_loading());
7165
7165
  var COLOR_CLASSNAMES = {
7166
7166
  "primary": tw(
7167
- "text-white bg-primary-80 active:bg-primary-90 active:ring-0 focus-visible:ring-2 focus-visible:ring-primary-100 focus-visible:ring-inset hover:bg-primary-70 disabled:bg-primary-5"
7167
+ "text-white bg-primary-80 active:bg-primary-90 active:ring-0 focus-visible:ring-2 focus-visible:ring-primary-100 focus-visible:ring-inset hover:bg-primary-90 disabled:bg-primary-40"
7168
7168
  ),
7169
7169
  "secondary": tw(
7170
- "text-grey-60 bg-white ring-1 ring-grey-30 ring-inset active:bg-grey-5 active:ring-grey-50 active:text-grey-80",
7171
- "focus-visible:ring-2 focus-visible:ring-grey-50 focus-visible:text-grey-80",
7172
- "hover:ring-grey-50 hover:text-grey-80 disabled:text-grey-30 disabled:bg-grey-0 disabled:ring-grey-20"
7170
+ "text-primary-80 bg-white ring-1 ring-primary-80 ring-inset",
7171
+ "active:bg-primary-5 active:ring-primary-90 active:text-primary-90",
7172
+ "focus-visible:ring-2 focus-visible:ring-primary-90 focus-visible:text-primary-80",
7173
+ "hover:bg-primary-5 hover:ring-primary-90 hover:text-primary-90",
7174
+ "disabled:bg-white disabled:text-primary-40 disabled:ring-primary-40"
7173
7175
  ),
7174
7176
  "ghost": ghostButtonStyle,
7175
- "text": ghostButtonStyle,
7177
+ "text": linkStyle,
7176
7178
  "secondary-ghost": tw(
7177
7179
  "text-grey-60 active:text-grey-50 focus-visible:text-grey-80 hover:text-grey-80 disabled:text-grey-30"
7178
7180
  )
7179
7181
  };
7180
- var LoadingSpinner = ({
7181
- size = "20px",
7182
- kind = "primary"
7183
- }) => {
7182
+ var LoadingSpinner = ({ size = "20px" }) => {
7184
7183
  return /* @__PURE__ */ import_react19.default.createElement(InlineIcon, {
7185
7184
  icon: import_loading2.default,
7186
7185
  width: size,
7187
7186
  height: size,
7188
- color: kind === "primary" ? "primary-60" : "grey-60",
7187
+ color: "primary-80",
7189
7188
  "data-testid": "loading-button"
7190
7189
  });
7191
7190
  };
@@ -7299,8 +7298,7 @@ var asButton = (Component, isDropdownButton) => {
7299
7298
  className: tw("absolute left-1/2 top-0 bottom-0 flex"),
7300
7299
  style: { transform: "translate(-50%)" }
7301
7300
  }, /* @__PURE__ */ import_react19.default.createElement(LoadingSpinner, {
7302
- size: iconSize,
7303
- kind: kind === "primary" ? "primary" : "secondary"
7301
+ size: iconSize
7304
7302
  })), /* @__PURE__ */ import_react19.default.createElement("div", {
7305
7303
  className: tw({ invisible: loading2 })
7306
7304
  }, buttonContent())) : buttonContent());
@@ -7432,19 +7430,19 @@ var import_warningSign2 = __toESM(require_warningSign());
7432
7430
  var alertTypes = {
7433
7431
  information: {
7434
7432
  icon: import_infoSign2.default,
7435
- color: "info-40"
7433
+ color: "info-70"
7436
7434
  },
7437
7435
  warning: {
7438
7436
  icon: import_warningSign2.default,
7439
- color: "warning-40"
7437
+ color: "warning-90"
7440
7438
  },
7441
7439
  error: {
7442
7440
  icon: import_error2.default,
7443
- color: "error-40"
7441
+ color: "error-70"
7444
7442
  },
7445
7443
  success: {
7446
7444
  icon: import_tickCircle2.default,
7447
- color: "success-40"
7445
+ color: "success-70"
7448
7446
  }
7449
7447
  };
7450
7448
  var Alert = (_a) => {
@@ -7464,7 +7462,7 @@ var Alert = (_a) => {
7464
7462
  className: classNames(
7465
7463
  tw("rounded grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-2", {
7466
7464
  "bg-error-5": type === "error",
7467
- "bg-info-5": type === "information",
7465
+ "bg-info-10": type === "information",
7468
7466
  "bg-success-5": type === "success",
7469
7467
  "bg-warning-5": type === "warning",
7470
7468
  "p-4": Boolean(dense),
@@ -7693,10 +7691,10 @@ var Banner = (_a) => {
7693
7691
  }), children);
7694
7692
  };
7695
7693
  Banner.Title = (_a) => {
7696
- var _b = _a, { children, className, layout, titleVariant = "primary" } = _b, rest = __objRest(_b, ["children", "className", "layout", "titleVariant"]);
7694
+ var _b = _a, { children, className, layout } = _b, rest = __objRest(_b, ["children", "className", "layout"]);
7697
7695
  return /* @__PURE__ */ import_react26.default.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7698
7696
  variant: "subheading",
7699
- color: titleVariant === "secondary" ? "primary-80" : "grey-100",
7697
+ color: "grey-100",
7700
7698
  className: classNames(
7701
7699
  className,
7702
7700
  tw("whitespace-nowrap", {
@@ -7768,8 +7766,7 @@ var createBanner = (displayName, opts = {}) => {
7768
7766
  }, /* @__PURE__ */ import_react27.default.createElement(Banner.ContentContainer, {
7769
7767
  layout
7770
7768
  }, /* @__PURE__ */ import_react27.default.createElement(Banner.Title, {
7771
- layout,
7772
- titleVariant: opts.isOneLineBanner ? "secondary" : "primary"
7769
+ layout
7773
7770
  }, title), /* @__PURE__ */ import_react27.default.createElement(Banner.Description, {
7774
7771
  flexGrow: isDismissable ? false : true
7775
7772
  }, children || description), action && /* @__PURE__ */ import_react27.default.createElement(Banner.Actions, {
@@ -7842,7 +7839,7 @@ var asCrumb = (Component, displayName, options = { isActive: false }) => {
7842
7839
  }), /* @__PURE__ */ import_react28.default.createElement("span", {
7843
7840
  className: (0, import_classnames3.default)(
7844
7841
  tw("flex flex-row flex-nowrap items-center gap-x-3 whitespace-nowrap", {
7845
- "text-primary-80 hover:text-primary-70": !options.isActive,
7842
+ "text-primary-80 hover:text-primary-70 underline hover:no-underline": !options.isActive,
7846
7843
  "text-grey-90": options.isActive
7847
7844
  })
7848
7845
  )
@@ -8546,7 +8543,7 @@ var Checkbox = import_react39.default.forwardRef(
8546
8543
  var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
8547
8544
  return /* @__PURE__ */ import_react39.default.createElement("span", {
8548
8545
  className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
8549
- "hover:border-grey-50 peer-checked:border-navyBlue-100": !disabled,
8546
+ "hover:border-grey-50 peer-checked:border-primary-80": !disabled,
8550
8547
  "border-grey-5": disabled
8551
8548
  })
8552
8549
  }, /* @__PURE__ */ import_react39.default.createElement("input", __spreadProps(__spreadValues({
@@ -8557,24 +8554,25 @@ var Checkbox = import_react39.default.forwardRef(
8557
8554
  }, props), {
8558
8555
  className: classNames(
8559
8556
  tw("peer appearance-none outline-none w-5 h-5", "rounded-sm border border-transparent", {
8560
- "cursor-pointer checked:bg-navyBlue-100": !disabled,
8561
- "cursor-not-allowed bg-grey-0": disabled
8557
+ "cursor-pointer checked:bg-primary-80": !disabled,
8558
+ "cursor-not-allowed bg-grey-0 checked:bg-primary-40": disabled
8562
8559
  })
8563
8560
  ),
8564
8561
  readOnly,
8565
8562
  disabled
8566
8563
  })), /* @__PURE__ */ import_react39.default.createElement(Icon, {
8567
8564
  icon: indeterminate ? import_minus2.default : import_tick3.default,
8565
+ strokeWidth: "2px",
8568
8566
  className: classNames(
8569
8567
  tw(
8570
8568
  "absolute top-0 right-0",
8571
8569
  "pointer-events-none p-[2px] w-5 h-5",
8572
- "text-transparent [&>path]:stroke-transparent",
8570
+ "text-transparent [&>path]:stroke-transparent [&>path]:stroke-2",
8573
8571
  "rounded-sm border border-grey-20 peer-focus:border-info-70"
8574
8572
  ),
8575
8573
  {
8576
- "peer-hover:border-grey-50 peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-navyBlue-100": !disabled,
8577
- "border-grey-5 peer-checked:text-grey-30 peer-checked:[&>path]:stroke-grey-30": disabled
8574
+ "peer-hover:border-grey-50 peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-80": !disabled,
8575
+ "border-grey-5 peer-checked:text-primary-10 peer-checked:[&>path]:stroke-primary-10 peer-checked:border-primary-40": disabled
8578
8576
  }
8579
8577
  )
8580
8578
  }));
@@ -10202,10 +10200,10 @@ var RadioButton = import_react62.default.forwardRef(
10202
10200
  tw(
10203
10201
  "inline-flex justify-center items-center self-center appearance-none",
10204
10202
  "w-5 h-5 p-[3px] rounded-full cursor-pointer border border-grey-20",
10205
- "outline-none focus:border-info-70 checked:bg-navyBlue-100 checked:shadow-whiteInset",
10203
+ "outline-none focus:border-info-70 checked:bg-primary-80 checked:shadow-whiteInset",
10206
10204
  {
10207
- "hover:border-grey-50 checked:border-navyBlue-100": !disabled,
10208
- "cursor-not-allowed border-grey-5 bg-grey-0 checked:bg-opacity-40": disabled
10205
+ "hover:border-grey-50 checked:border-primary-80": !disabled,
10206
+ "cursor-not-allowed border-grey-5 bg-grey-0 checked:bg-opacity-40 checked:bg-primary-40 checked:border-primary-40": disabled
10209
10207
  }
10210
10208
  )
10211
10209
  ),
@@ -10740,7 +10738,7 @@ var Modal = (_a) => {
10740
10738
  Modal.BackDrop = (_a) => {
10741
10739
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
10742
10740
  return /* @__PURE__ */ import_react71.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
10743
- className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-navyBlue-100 opacity-70"), className)
10741
+ className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-primary-100 opacity-60"), className)
10744
10742
  }));
10745
10743
  };
10746
10744
  Modal.Dialog = import_react71.default.forwardRef(
@@ -11465,12 +11463,12 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
11465
11463
  if (status === "warning") {
11466
11464
  statusIcon = /* @__PURE__ */ import_react85.default.createElement(InlineIcon, {
11467
11465
  icon: import_warningSign4.default,
11468
- color: "warning-80"
11466
+ color: selected ? void 0 : "warning-80"
11469
11467
  });
11470
11468
  } else if (status === "error") {
11471
11469
  statusIcon = /* @__PURE__ */ import_react85.default.createElement(InlineIcon, {
11472
11470
  icon: import_warningSign4.default,
11473
- color: "error-50"
11471
+ color: selected ? void 0 : "error-50"
11474
11472
  });
11475
11473
  }
11476
11474
  const tab = /* @__PURE__ */ import_react85.default.createElement(Component, __spreadValues({
@@ -13188,8 +13186,8 @@ var Switch = import_react106.default.forwardRef(
13188
13186
  "outline-none focus:border border-info-70 bg-grey-20",
13189
13187
  "cursor-pointer disabled:cursor-not-allowed",
13190
13188
  {
13191
- "hover:bg-grey-30 checked:bg-navyBlue-100 hover:checked:bg-navyBlue-100": !disabled,
13192
- "bg-grey-5 checked:opacity-40": disabled
13189
+ "hover:bg-grey-30 checked:bg-primary-80 hover:checked:bg-primary-80": !disabled,
13190
+ "bg-grey-5 checked:opacity-40 checked:bg-primary-40": disabled
13193
13191
  }
13194
13192
  )
13195
13193
  ),