@aivenio/aquarium 1.29.0 → 1.30.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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Thu, 13 Jul 2023 12:37:08 GMT
3
+ // Generated on Fri, 14 Jul 2023 08:34:12 GMT
4
4
 
5
5
  $border-radius-none: 0px !default;
6
6
  $border-radius-sm: 0.125rem !default;
@@ -67,6 +67,7 @@ $colors-grey-60: #5a5b6a !default;
67
67
  $colors-grey-50: #787885 !default;
68
68
  $colors-grey-40: #9696a0 !default;
69
69
  $colors-grey-30: #b4b4bb !default;
70
+ $colors-grey-20: #d2d2d6 !default;
70
71
  $colors-grey-10: #e1e1e3 !default;
71
72
  $colors-grey-5: #ededf0 !default;
72
73
  $colors-grey-0: #f7f7fa !default;
@@ -82,20 +83,18 @@ $colors-secondary-20: #f8c99c !default;
82
83
  $colors-secondary-10: #fee8d0 !default;
83
84
  $colors-secondary-5: #fff3e8 !default;
84
85
  $colors-secondary-0: #fffbf8 !default;
85
- $colors-primary-100: #a70045 !default;
86
- $colors-primary-90: #c60443 !default;
87
- $colors-primary-80: #e41a4a !default;
88
- $colors-primary-70: #ff3554 !default;
89
- $colors-primary-60: #ff5275 !default;
90
- $colors-primary-50: #ff6f94 !default;
91
- $colors-primary-40: #ff8db0 !default;
92
- $colors-primary-30: #ffa9c9 !default;
93
- $colors-primary-20: #ffc4de !default;
94
- $colors-primary-10: #ffdeef !default;
95
- $colors-primary-5: #ffe8f4 !default;
96
- $colors-primary-0: #fff9fc !default;
97
- $colors-grey-20: #d2d2d6 !default;
98
- $colors-navy-blue-100: #30375e !default;
86
+ $colors-primary-100: #0e1652 !default;
87
+ $colors-primary-90: #222f95 !default;
88
+ $colors-primary-80: #3545be !default;
89
+ $colors-primary-70: #5865cd !default;
90
+ $colors-primary-60: #818eec !default;
91
+ $colors-primary-50: #9daaee !default;
92
+ $colors-primary-40: #b9c5ef !default;
93
+ $colors-primary-30: #c7d1f4 !default;
94
+ $colors-primary-20: #d5ddfa !default;
95
+ $colors-primary-10: #e3e9ff !default;
96
+ $colors-primary-5: #f3f6ff !default;
97
+ $colors-primary-0: #ffffff !default;
99
98
  $colors-transparent: transparent !default;
100
99
  $colors-white: white !default;
101
100
  $colors-black: black !default;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Thu, 13 Jul 2023 12:37:09 GMT
3
+ // Generated on Fri, 14 Jul 2023 08:34:13 GMT
4
4
 
5
5
  $border-radius-none: 0px;
6
6
  $border-radius-sm: 0.125rem;
@@ -95,7 +95,6 @@ $colors-primary-20: #b4e5fb;
95
95
  $colors-primary-10: #e0f5fe;
96
96
  $colors-primary-5: #effaff;
97
97
  $colors-primary-0: #f9fdff;
98
- $colors-navy-blue-100: #30375e;
99
98
  $colors-transparent: transparent;
100
99
  $colors-white: white;
101
100
  $colors-black: black;
package/dist/atoms.cjs CHANGED
@@ -3889,8 +3889,7 @@ var require_tokens = __commonJS({
3889
3889
  "primary-20": "#b4e5fb",
3890
3890
  "primary-10": "#e0f5fe",
3891
3891
  "primary-5": "#effaff",
3892
- "primary-0": "#f9fdff",
3893
- "navyBlue-100": "#30375e"
3892
+ "primary-0": "#f9fdff"
3894
3893
  },
3895
3894
  typography: {
3896
3895
  sizes: [
@@ -4423,6 +4422,7 @@ var require_tokens = __commonJS({
4423
4422
  "grey-50": "#787885",
4424
4423
  "grey-40": "#9696a0",
4425
4424
  "grey-30": "#b4b4bb",
4425
+ "grey-20": "#d2d2d6",
4426
4426
  "grey-10": "#e1e1e3",
4427
4427
  "grey-5": "#ededf0",
4428
4428
  "grey-0": "#f7f7fa",
@@ -4438,20 +4438,18 @@ var require_tokens = __commonJS({
4438
4438
  "secondary-10": "#fee8d0",
4439
4439
  "secondary-5": "#fff3e8",
4440
4440
  "secondary-0": "#fffbf8",
4441
- "primary-100": "#a70045",
4442
- "primary-90": "#c60443",
4443
- "primary-80": "#e41a4a",
4444
- "primary-70": "#ff3554",
4445
- "primary-60": "#ff5275",
4446
- "primary-50": "#ff6f94",
4447
- "primary-40": "#ff8db0",
4448
- "primary-30": "#ffa9c9",
4449
- "primary-20": "#ffc4de",
4450
- "primary-10": "#ffdeef",
4451
- "primary-5": "#ffe8f4",
4452
- "primary-0": "#fff9fc",
4453
- "grey-20": "#d2d2d6",
4454
- "navyBlue-100": "#30375e"
4441
+ "primary-100": "#0e1652",
4442
+ "primary-90": "#222f95",
4443
+ "primary-80": "#3545be",
4444
+ "primary-70": "#5865cd",
4445
+ "primary-60": "#818eec",
4446
+ "primary-50": "#9daaee",
4447
+ "primary-40": "#b9c5ef",
4448
+ "primary-30": "#c7d1f4",
4449
+ "primary-20": "#d5ddfa",
4450
+ "primary-10": "#e3e9ff",
4451
+ "primary-5": "#f3f6ff",
4452
+ "primary-0": "#ffffff"
4455
4453
  },
4456
4454
  typography: {
4457
4455
  sizes: [
@@ -4459,40 +4457,40 @@ var require_tokens = __commonJS({
4459
4457
  name: "large-heading",
4460
4458
  className: "typography-large-heading",
4461
4459
  style: {
4462
- fontFamily: "Inter",
4460
+ fontFamily: "Poppins",
4463
4461
  fontSize: "32px",
4464
4462
  fontWeight: 700,
4465
4463
  fontStyle: "normal",
4466
4464
  lineHeight: 1.375,
4467
4465
  textTransform: "none"
4468
4466
  },
4469
- fontPostScriptName: "Inter-Bold"
4467
+ fontPostScriptName: "Poppins-Bold"
4470
4468
  },
4471
4469
  {
4472
4470
  name: "heading",
4473
4471
  className: "typography-heading",
4474
4472
  style: {
4475
- fontFamily: "Inter",
4473
+ fontFamily: "Poppins",
4476
4474
  fontSize: "24px",
4477
4475
  fontWeight: 700,
4478
4476
  fontStyle: "normal",
4479
4477
  lineHeight: 1.375,
4480
4478
  textTransform: "none"
4481
4479
  },
4482
- fontPostScriptName: "Inter-Bold"
4480
+ fontPostScriptName: "Poppins-Bold"
4483
4481
  },
4484
4482
  {
4485
4483
  name: "subheading",
4486
4484
  className: "typography-subheading",
4487
4485
  style: {
4488
- fontFamily: "Inter",
4486
+ fontFamily: "Poppins",
4489
4487
  fontSize: "20px",
4490
4488
  fontWeight: 600,
4491
4489
  fontStyle: "normal",
4492
4490
  lineHeight: 1.375,
4493
4491
  textTransform: "none"
4494
4492
  },
4495
- fontPostScriptName: "Inter-Bold"
4493
+ fontPostScriptName: "Poppins-Bold"
4496
4494
  },
4497
4495
  {
4498
4496
  name: "large-strong",
@@ -5332,6 +5330,7 @@ var tailwind_theme_default = {
5332
5330
  "grey-50": "var(--aquarium-colors-grey-50, #787885)",
5333
5331
  "grey-40": "var(--aquarium-colors-grey-40, #9696a0)",
5334
5332
  "grey-30": "var(--aquarium-colors-grey-30, #b4b4bb)",
5333
+ "grey-20": "var(--aquarium-colors-grey-20, #d2d2d6)",
5335
5334
  "grey-10": "var(--aquarium-colors-grey-10, #e1e1e3)",
5336
5335
  "grey-5": "var(--aquarium-colors-grey-5, #ededf0)",
5337
5336
  "grey-0": "var(--aquarium-colors-grey-0, #f7f7fa)",
@@ -5347,20 +5346,18 @@ var tailwind_theme_default = {
5347
5346
  "secondary-10": "var(--aquarium-colors-secondary-10, #fee8d0)",
5348
5347
  "secondary-5": "var(--aquarium-colors-secondary-5, #fff3e8)",
5349
5348
  "secondary-0": "var(--aquarium-colors-secondary-0, #fffbf8)",
5350
- "primary-100": "var(--aquarium-colors-primary-100, #a70045)",
5351
- "primary-90": "var(--aquarium-colors-primary-90, #c60443)",
5352
- "primary-80": "var(--aquarium-colors-primary-80, #e41a4a)",
5353
- "primary-70": "var(--aquarium-colors-primary-70, #ff3554)",
5354
- "primary-60": "var(--aquarium-colors-primary-60, #ff5275)",
5355
- "primary-50": "var(--aquarium-colors-primary-50, #ff6f94)",
5356
- "primary-40": "var(--aquarium-colors-primary-40, #ff8db0)",
5357
- "primary-30": "var(--aquarium-colors-primary-30, #ffa9c9)",
5358
- "primary-20": "var(--aquarium-colors-primary-20, #ffc4de)",
5359
- "primary-10": "var(--aquarium-colors-primary-10, #ffdeef)",
5360
- "primary-5": "var(--aquarium-colors-primary-5, #ffe8f4)",
5361
- "primary-0": "var(--aquarium-colors-primary-0, #fff9fc)",
5362
- "grey-20": "var(--aquarium-colors-grey-20, #d2d2d6)",
5363
- "navyBlue-100": "var(--aquarium-colors-navyBlue-100, #30375e)",
5349
+ "primary-100": "var(--aquarium-colors-primary-100, #0e1652)",
5350
+ "primary-90": "var(--aquarium-colors-primary-90, #222f95)",
5351
+ "primary-80": "var(--aquarium-colors-primary-80, #3545be)",
5352
+ "primary-70": "var(--aquarium-colors-primary-70, #5865cd)",
5353
+ "primary-60": "var(--aquarium-colors-primary-60, #818eec)",
5354
+ "primary-50": "var(--aquarium-colors-primary-50, #9daaee)",
5355
+ "primary-40": "var(--aquarium-colors-primary-40, #b9c5ef)",
5356
+ "primary-30": "var(--aquarium-colors-primary-30, #c7d1f4)",
5357
+ "primary-20": "var(--aquarium-colors-primary-20, #d5ddfa)",
5358
+ "primary-10": "var(--aquarium-colors-primary-10, #e3e9ff)",
5359
+ "primary-5": "var(--aquarium-colors-primary-5, #f3f6ff)",
5360
+ "primary-0": "var(--aquarium-colors-primary-0, #ffffff)",
5364
5361
  transparent: "var(--aquarium-colors-transparent, transparent)",
5365
5362
  white: "var(--aquarium-colors-white, white)",
5366
5363
  black: "var(--aquarium-colors-black, black)",
@@ -6526,9 +6523,12 @@ var Arrow = (props) => {
6526
6523
 
6527
6524
  // src/utils/constants.ts
6528
6525
  var ghostButtonStyle = tw(
6529
- "text-primary-80 active:text-primary-70 focus-visible:text-grey-90 hover:text-primary-70 disabled:text-primary-40"
6526
+ "text-primary-80 active:text-primary-90 focus-visible:text-primary-90 hover:text-primary-90 disabled:text-primary-40"
6527
+ );
6528
+ var linkStyle = classNames(
6529
+ ghostButtonStyle,
6530
+ tw("visited:text-primary-80 underline hover:no-underline focusable")
6530
6531
  );
6531
- var linkStyle = classNames(ghostButtonStyle, tw("visited:text-primary-80 focusable"));
6532
6532
 
6533
6533
  // src/utils/string.ts
6534
6534
  var capitalize = (a) => a.charAt(0).toUpperCase() + a.slice(1);
@@ -6538,28 +6538,27 @@ var import_chevronDown2 = __toESM(require_chevronDown());
6538
6538
  var import_loading2 = __toESM(require_loading());
6539
6539
  var COLOR_CLASSNAMES = {
6540
6540
  "primary": tw(
6541
- "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"
6541
+ "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"
6542
6542
  ),
6543
6543
  "secondary": tw(
6544
- "text-grey-60 bg-white ring-1 ring-grey-30 ring-inset active:bg-grey-5 active:ring-grey-50 active:text-grey-80",
6545
- "focus-visible:ring-2 focus-visible:ring-grey-50 focus-visible:text-grey-80",
6546
- "hover:ring-grey-50 hover:text-grey-80 disabled:text-grey-30 disabled:bg-grey-0 disabled:ring-grey-20"
6544
+ "text-primary-80 bg-white ring-1 ring-primary-80 ring-inset",
6545
+ "active:bg-primary-5 active:ring-primary-90 active:text-primary-90",
6546
+ "focus-visible:ring-2 focus-visible:ring-primary-90 focus-visible:text-primary-80",
6547
+ "hover:bg-primary-5 hover:ring-primary-90 hover:text-primary-90",
6548
+ "disabled:bg-white disabled:text-primary-40 disabled:ring-primary-40"
6547
6549
  ),
6548
6550
  "ghost": ghostButtonStyle,
6549
- "text": ghostButtonStyle,
6551
+ "text": linkStyle,
6550
6552
  "secondary-ghost": tw(
6551
6553
  "text-grey-60 active:text-grey-50 focus-visible:text-grey-80 hover:text-grey-80 disabled:text-grey-30"
6552
6554
  )
6553
6555
  };
6554
- var LoadingSpinner = ({
6555
- size = "20px",
6556
- kind = "primary"
6557
- }) => {
6556
+ var LoadingSpinner = ({ size = "20px" }) => {
6558
6557
  return /* @__PURE__ */ import_react18.default.createElement(InlineIcon, {
6559
6558
  icon: import_loading2.default,
6560
6559
  width: size,
6561
6560
  height: size,
6562
- color: kind === "primary" ? "primary-60" : "grey-60",
6561
+ color: "primary-80",
6563
6562
  "data-testid": "loading-button"
6564
6563
  });
6565
6564
  };
@@ -6673,8 +6672,7 @@ var asButton = (Component, isDropdownButton) => {
6673
6672
  className: tw("absolute left-1/2 top-0 bottom-0 flex"),
6674
6673
  style: { transform: "translate(-50%)" }
6675
6674
  }, /* @__PURE__ */ import_react18.default.createElement(LoadingSpinner, {
6676
- size: iconSize,
6677
- kind: kind === "primary" ? "primary" : "secondary"
6675
+ size: iconSize
6678
6676
  })), /* @__PURE__ */ import_react18.default.createElement("div", {
6679
6677
  className: tw({ invisible: loading2 })
6680
6678
  }, buttonContent())) : buttonContent());
@@ -6803,19 +6801,19 @@ var import_warningSign2 = __toESM(require_warningSign());
6803
6801
  var alertTypes = {
6804
6802
  information: {
6805
6803
  icon: import_infoSign2.default,
6806
- color: "info-40"
6804
+ color: "info-70"
6807
6805
  },
6808
6806
  warning: {
6809
6807
  icon: import_warningSign2.default,
6810
- color: "warning-40"
6808
+ color: "warning-90"
6811
6809
  },
6812
6810
  error: {
6813
6811
  icon: import_error2.default,
6814
- color: "error-40"
6812
+ color: "error-70"
6815
6813
  },
6816
6814
  success: {
6817
6815
  icon: import_tickCircle2.default,
6818
- color: "success-40"
6816
+ color: "success-70"
6819
6817
  }
6820
6818
  };
6821
6819
  var Alert = (_a) => {
@@ -6835,7 +6833,7 @@ var Alert = (_a) => {
6835
6833
  className: classNames(
6836
6834
  tw("rounded grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-2", {
6837
6835
  "bg-error-5": type === "error",
6838
- "bg-info-5": type === "information",
6836
+ "bg-info-10": type === "information",
6839
6837
  "bg-success-5": type === "success",
6840
6838
  "bg-warning-5": type === "warning",
6841
6839
  "p-4": Boolean(dense),
@@ -6965,7 +6963,7 @@ var Checkbox = import_react22.default.forwardRef(
6965
6963
  var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
6966
6964
  return /* @__PURE__ */ import_react22.default.createElement("span", {
6967
6965
  className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
6968
- "hover:border-grey-50 peer-checked:border-navyBlue-100": !disabled,
6966
+ "hover:border-grey-50 peer-checked:border-primary-80": !disabled,
6969
6967
  "border-grey-5": disabled
6970
6968
  })
6971
6969
  }, /* @__PURE__ */ import_react22.default.createElement("input", __spreadProps(__spreadValues({
@@ -6976,24 +6974,25 @@ var Checkbox = import_react22.default.forwardRef(
6976
6974
  }, props), {
6977
6975
  className: classNames(
6978
6976
  tw("peer appearance-none outline-none w-5 h-5", "rounded-sm border border-transparent", {
6979
- "cursor-pointer checked:bg-navyBlue-100": !disabled,
6980
- "cursor-not-allowed bg-grey-0": disabled
6977
+ "cursor-pointer checked:bg-primary-80": !disabled,
6978
+ "cursor-not-allowed bg-grey-0 checked:bg-primary-40": disabled
6981
6979
  })
6982
6980
  ),
6983
6981
  readOnly,
6984
6982
  disabled
6985
6983
  })), /* @__PURE__ */ import_react22.default.createElement(Icon, {
6986
6984
  icon: indeterminate ? import_minus2.default : import_tick2.default,
6985
+ strokeWidth: "2px",
6987
6986
  className: classNames(
6988
6987
  tw(
6989
6988
  "absolute top-0 right-0",
6990
6989
  "pointer-events-none p-[2px] w-5 h-5",
6991
- "text-transparent [&>path]:stroke-transparent",
6990
+ "text-transparent [&>path]:stroke-transparent [&>path]:stroke-2",
6992
6991
  "rounded-sm border border-grey-20 peer-focus:border-info-70"
6993
6992
  ),
6994
6993
  {
6995
- "peer-hover:border-grey-50 peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-navyBlue-100": !disabled,
6996
- "border-grey-5 peer-checked:text-grey-30 peer-checked:[&>path]:stroke-grey-30": disabled
6994
+ "peer-hover:border-grey-50 peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-80": !disabled,
6995
+ "border-grey-5 peer-checked:text-primary-10 peer-checked:[&>path]:stroke-primary-10 peer-checked:border-primary-40": disabled
6997
6996
  }
6998
6997
  )
6999
6998
  }));
@@ -7442,7 +7441,7 @@ var Modal = (_a) => {
7442
7441
  Modal.BackDrop = (_a) => {
7443
7442
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
7444
7443
  return /* @__PURE__ */ import_react31.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
7445
- className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-navyBlue-100 opacity-70"), className)
7444
+ className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-primary-100 opacity-60"), className)
7446
7445
  }));
7447
7446
  };
7448
7447
  Modal.Dialog = import_react31.default.forwardRef(
@@ -7678,10 +7677,10 @@ var RadioButton = import_react35.default.forwardRef(
7678
7677
  tw(
7679
7678
  "inline-flex justify-center items-center self-center appearance-none",
7680
7679
  "w-5 h-5 p-[3px] rounded-full cursor-pointer border border-grey-20",
7681
- "outline-none focus:border-info-70 checked:bg-navyBlue-100 checked:shadow-whiteInset",
7680
+ "outline-none focus:border-info-70 checked:bg-primary-80 checked:shadow-whiteInset",
7682
7681
  {
7683
- "hover:border-grey-50 checked:border-navyBlue-100": !disabled,
7684
- "cursor-not-allowed border-grey-5 bg-grey-0 checked:bg-opacity-40": disabled
7682
+ "hover:border-grey-50 checked:border-primary-80": !disabled,
7683
+ "cursor-not-allowed border-grey-5 bg-grey-0 checked:bg-opacity-40 checked:bg-primary-40 checked:border-primary-40": disabled
7685
7684
  }
7686
7685
  )
7687
7686
  ),
@@ -7963,8 +7962,8 @@ var Switch = import_react38.default.forwardRef(
7963
7962
  "outline-none focus:border border-info-70 bg-grey-20",
7964
7963
  "cursor-pointer disabled:cursor-not-allowed",
7965
7964
  {
7966
- "hover:bg-grey-30 checked:bg-navyBlue-100 hover:checked:bg-navyBlue-100": !disabled,
7967
- "bg-grey-5 checked:opacity-40": disabled
7965
+ "hover:bg-grey-30 checked:bg-primary-80 hover:checked:bg-primary-80": !disabled,
7966
+ "bg-grey-5 checked:opacity-40 checked:bg-primary-40": disabled
7968
7967
  }
7969
7968
  )
7970
7969
  ),