@aivenio/aquarium 5.0.1 → 5.1.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
@@ -4489,7 +4489,7 @@ var inputClasses = tv({
4489
4489
  }
4490
4490
  });
4491
4491
  var menuClasses = tv({
4492
- base: "text-default bg-popover-content overflow-y-auto"
4492
+ base: "text-default bg-overlay overflow-y-auto"
4493
4493
  });
4494
4494
  var noResultsClasses = tv({
4495
4495
  base: "p-3 text-inactive typography-small"
@@ -5330,7 +5330,8 @@ var tailwind_theme_default = {
5330
5330
  "100": "var(--aquarium-colors-warning-100)",
5331
5331
  muted: "var(--aquarium-background-color-warning-muted)",
5332
5332
  default: "var(--aquarium-background-color-warning-default)",
5333
- intense: "var(--aquarium-background-color-warning-intense)"
5333
+ intense: "var(--aquarium-background-color-warning-intense)",
5334
+ inverse: "var(--aquarium-background-color-warning-inverse)"
5334
5335
  },
5335
5336
  success: {
5336
5337
  "0": "var(--aquarium-colors-success-0)",
@@ -5347,7 +5348,8 @@ var tailwind_theme_default = {
5347
5348
  "100": "var(--aquarium-colors-success-100)",
5348
5349
  muted: "var(--aquarium-background-color-success-muted)",
5349
5350
  default: "var(--aquarium-background-color-success-default)",
5350
- intense: "var(--aquarium-background-color-success-intense)"
5351
+ intense: "var(--aquarium-background-color-success-intense)",
5352
+ inverse: "var(--aquarium-background-color-success-inverse)"
5351
5353
  },
5352
5354
  info: {
5353
5355
  "0": "var(--aquarium-colors-info-0)",
@@ -5364,7 +5366,8 @@ var tailwind_theme_default = {
5364
5366
  "100": "var(--aquarium-colors-info-100)",
5365
5367
  muted: "var(--aquarium-background-color-info-muted)",
5366
5368
  default: "var(--aquarium-background-color-info-default)",
5367
- intense: "var(--aquarium-background-color-info-intense)"
5369
+ intense: "var(--aquarium-background-color-info-intense)",
5370
+ inverse: "var(--aquarium-background-color-info-inverse)"
5368
5371
  },
5369
5372
  grey: {
5370
5373
  "0": "var(--aquarium-colors-grey-0)",
@@ -5414,15 +5417,27 @@ var tailwind_theme_default = {
5414
5417
  hover: "var(--aquarium-background-color-primary-hover)"
5415
5418
  },
5416
5419
  body: "var(--aquarium-background-color-body)",
5420
+ layer: "var(--aquarium-background-color-layer)",
5417
5421
  "body-intense": "var(--aquarium-background-color-body-intense)",
5422
+ inverse: "var(--aquarium-background-color-inverse)",
5423
+ overlay: "var(--aquarium-background-color-overlay)",
5418
5424
  "popover-content": "var(--aquarium-background-color-popover-content)",
5419
5425
  muted: "var(--aquarium-background-color-muted)",
5420
5426
  default: "var(--aquarium-background-color-default)",
5421
5427
  intense: "var(--aquarium-background-color-intense)",
5428
+ action: {
5429
+ "primary-button": {
5430
+ default: "var(--aquarium-background-color-action-primary-button-default)",
5431
+ active: "var(--aquarium-background-color-action-primary-button-active)",
5432
+ hover: "var(--aquarium-background-color-action-primary-button-hover)",
5433
+ disabled: "var(--aquarium-background-color-action-primary-button-disabled)"
5434
+ }
5435
+ },
5422
5436
  danger: {
5423
5437
  muted: "var(--aquarium-background-color-danger-muted)",
5424
5438
  default: "var(--aquarium-background-color-danger-default)",
5425
- intense: "var(--aquarium-background-color-danger-intense)"
5439
+ intense: "var(--aquarium-background-color-danger-intense)",
5440
+ inverse: "var(--aquarium-background-color-danger-inverse)"
5426
5441
  },
5427
5442
  status: {
5428
5443
  announcement: "var(--aquarium-background-color-status-announcement)",
@@ -5686,6 +5701,15 @@ var tailwind_theme_default = {
5686
5701
  muted: "var(--aquarium-border-color-muted)",
5687
5702
  default: "var(--aquarium-border-color-default)",
5688
5703
  intense: "var(--aquarium-border-color-intense)",
5704
+ action: {
5705
+ focus: "var(--aquarium-border-color-action-focus)",
5706
+ "secondary-button": {
5707
+ default: "var(--aquarium-border-color-action-secondary-button-default)",
5708
+ active: "var(--aquarium-border-color-action-secondary-button-active)",
5709
+ hover: "var(--aquarium-border-color-action-secondary-button-hover)",
5710
+ disabled: "var(--aquarium-border-color-action-secondary-button-disabled)"
5711
+ }
5712
+ },
5689
5713
  danger: {
5690
5714
  muted: "var(--aquarium-border-color-danger-muted)",
5691
5715
  default: "var(--aquarium-border-color-danger-default)",
@@ -5914,7 +5938,10 @@ var tokens_default = {
5914
5938
  },
5915
5939
  backgroundColor: {
5916
5940
  body: "white",
5941
+ layer: "white",
5917
5942
  "body-intense": "rgba(58,58,68,1)",
5943
+ inverse: "rgba(58,58,68,1)",
5944
+ overlay: "white",
5918
5945
  "popover-content": "white",
5919
5946
  muted: "rgba(247,247,250,1)",
5920
5947
  default: "rgba(237,237,240,1)",
@@ -5926,25 +5953,37 @@ var tokens_default = {
5926
5953
  active: "rgba(243,246,255,1)",
5927
5954
  hover: "rgba(243,246,255,1)"
5928
5955
  },
5956
+ action: {
5957
+ "primary-button": {
5958
+ default: "rgba(53,69,190,1)",
5959
+ active: "rgba(243,246,255,1)",
5960
+ hover: "rgba(34,47,149,1)",
5961
+ disabled: "rgba(185,197,239,1)"
5962
+ }
5963
+ },
5929
5964
  info: {
5930
5965
  muted: "rgba(224,245,254,1)",
5931
5966
  default: "rgba(3,153,227,1)",
5932
- intense: "rgba(1,116,186,1)"
5967
+ intense: "rgba(1,116,186,1)",
5968
+ inverse: "rgba(3,153,227,1)"
5933
5969
  },
5934
5970
  success: {
5935
5971
  muted: "rgba(236,247,237,1)",
5936
5972
  default: "rgba(0,179,0,1)",
5937
- intense: "rgba(0,142,0,1)"
5973
+ intense: "rgba(0,142,0,1)",
5974
+ inverse: "rgba(0,179,0,1)"
5938
5975
  },
5939
5976
  warning: {
5940
5977
  muted: "rgba(255,248,234,1)",
5941
5978
  default: "rgba(255,179,0,1)",
5942
- intense: "rgba(255,144,3,1)"
5979
+ intense: "rgba(255,144,3,1)",
5980
+ inverse: "rgba(255,179,0,1)"
5943
5981
  },
5944
5982
  danger: {
5945
5983
  muted: "rgba(255,203,210,1)",
5946
5984
  default: "rgba(255,173,179,1)",
5947
- intense: "rgba(230,39,40,1)"
5985
+ intense: "rgba(230,39,40,1)",
5986
+ inverse: "rgba(216,0,5,1)"
5948
5987
  },
5949
5988
  status: {
5950
5989
  announcement: "rgba(243,246,255,1)",
@@ -5966,6 +6005,15 @@ var tokens_default = {
5966
6005
  default: "rgba(53,69,190,1)",
5967
6006
  intense: "rgba(14,22,82,1)"
5968
6007
  },
6008
+ action: {
6009
+ focus: "rgba(53,69,190,1)",
6010
+ "secondary-button": {
6011
+ default: "rgba(53,69,190,1)",
6012
+ active: "rgba(243,246,255,1)",
6013
+ hover: "rgba(243,246,255,1)",
6014
+ disabled: "rgba(129,142,236,1)"
6015
+ }
6016
+ },
5969
6017
  info: {
5970
6018
  muted: "rgba(40,180,244,1)",
5971
6019
  default: "rgba(3,153,227,1)",
@@ -6732,7 +6780,7 @@ var TooltipWrapper = React6.forwardRef(
6732
6780
  "div",
6733
6781
  {
6734
6782
  ref,
6735
- className: "Aquarium-Tooltip p-3 rounded-sm typography-caption max-w-[320px] bg-body-intense text-opposite-default",
6783
+ className: "Aquarium-Tooltip p-3 rounded-sm typography-caption max-w-[320px] bg-inverse text-opposite-default",
6736
6784
  ...mergeProps(props, tooltipProps)
6737
6785
  },
6738
6786
  props.children,
@@ -6772,7 +6820,7 @@ var getArrowStyle = (element, position, { left, top }) => {
6772
6820
  return { left, top };
6773
6821
  };
6774
6822
  var Arrow = (props) => {
6775
- return /* @__PURE__ */ React6.createElement("div", { className: "absolute w-3 h-3 bg-body-intense rotate-45", ...props });
6823
+ return /* @__PURE__ */ React6.createElement("div", { className: "absolute w-3 h-3 bg-inverse rotate-45", ...props });
6776
6824
  };
6777
6825
 
6778
6826
  // src/atoms/Button/Button.tsx
@@ -6807,14 +6855,14 @@ var buttonStateClasses = tv3({
6807
6855
  variants: {
6808
6856
  kind: {
6809
6857
  primary: [
6810
- "active:text-white active:bg-primary-active",
6811
- "hover:bg-primary-intense",
6812
- "disabled:text-white disabled:bg-primary-muted"
6858
+ "active:text-white active:bg-action-primary-button-active",
6859
+ "hover:bg-action-primary-button-hover",
6860
+ "disabled:text-white disabled:bg-action-primary-button-disabled"
6813
6861
  ],
6814
6862
  secondary: [
6815
6863
  "active:bg-primary-active active:text-primary-active",
6816
6864
  "hover:bg-primary-hover",
6817
- "before:disabled:border-primary-muted"
6865
+ "before:disabled:border-action-secondary-button-disabled"
6818
6866
  ],
6819
6867
  ghost: ["hover:text-primary-active"],
6820
6868
  text: interactiveTextStyles(),
@@ -6833,8 +6881,8 @@ var buttonClasses = tv3({
6833
6881
  base: "Aquarium-Button whitespace-nowrap transition text-center text-primary-intense rounded-sm relative px-4 py-3 inline-flex gap-3 items-center justify-center",
6834
6882
  variants: {
6835
6883
  kind: {
6836
- primary: "Aquarium-Button.Primary text-white bg-primary-default icon-stroke-2",
6837
- secondary: "Aquarium-Button.Secondary bg-transparent before:absolute before:inset-0 before:border before:border-primary-default before:rounded-sm icon-stroke-2",
6884
+ primary: "Aquarium-Button.Primary text-white bg-action-primary-button-default icon-stroke-2",
6885
+ secondary: "Aquarium-Button.Secondary bg-transparent before:absolute before:inset-0 before:border before:border-action-secondary-button-default before:rounded-sm icon-stroke-2",
6838
6886
  ghost: "Aquarium-Button.Ghost px-0 icon-stroke-2",
6839
6887
  text: "Aquarium-Button.Text px-0 py-0 icon-stroke-2",
6840
6888
  icon: "Aquarium-Button.Icon px-2 py-2 text-default"
@@ -7008,7 +7056,7 @@ var toastStyles = tv4({
7008
7056
  variants: {
7009
7057
  variant: {
7010
7058
  default: {
7011
- base: "bg-body-intense text-opposite-default",
7059
+ base: "bg-inverse text-opposite-default",
7012
7060
  dismiss: "[&>button]:text-muted",
7013
7061
  action: "[&>*]:text-primary-inactive hover:[&>*]:text-primary-muted"
7014
7062
  },
@@ -9649,7 +9697,7 @@ import {
9649
9697
  import { tv as tv14 } from "tailwind-variants";
9650
9698
  var popoverStyles = tv14({
9651
9699
  // z-[101] ensures popover appears above modal (z-modal: 100)
9652
- base: "rounded-sm shadow-16dp bg-popover-content mt-1 overflow-y-auto flex flex-col border border-default outline-none z-[101]"
9700
+ base: "rounded-sm shadow-16dp bg-overlay mt-1 overflow-y-auto flex flex-col border border-default outline-none z-[101]"
9653
9701
  });
9654
9702
  var Popover = React55.forwardRef(
9655
9703
  ({ children, offset = 0, className, placement: _placement = "bottom-left", ...props }, ref) => {
@@ -11167,7 +11215,7 @@ import { clsx as clsx27 } from "clsx";
11167
11215
  import { tv as tv17 } from "tailwind-variants";
11168
11216
  var import_tick5 = __toESM(require_tick());
11169
11217
  var dropdownMenuStyles = tv17({
11170
- base: "bg-popover-content w-full flex flex-col overflow-x-hidden typography-small text-default"
11218
+ base: "bg-overlay w-full flex flex-col overflow-x-hidden typography-small text-default"
11171
11219
  });
11172
11220
  var DropdownMenu = ({ className, children, ...props }) => {
11173
11221
  return /* @__PURE__ */ React68.createElement(AriaMenu, { className: dropdownMenuStyles({ className: ["Aquarium-DropdownMenu", className] }), ...props }, children);
@@ -15282,8 +15330,8 @@ var bodyMaskClasses = tv24({
15282
15330
  var modalStyles = tv24({
15283
15331
  slots: {
15284
15332
  overlay: "inset-0 overflow-y-auto z-modal fixed",
15285
- backdrop: "-z-10 fixed min-w-full min-h-full bg-body-intense opacity-70",
15286
- dialog: "bg-popover-content max-h-full flex flex-col",
15333
+ backdrop: "-z-10 fixed min-w-full min-h-full bg-inverse opacity-30",
15334
+ dialog: "bg-overlay max-h-full flex flex-col",
15287
15335
  header: "pl-7 pr-[64px] pt-6 pb-4 gap-3 flex items-center",
15288
15336
  headerImage: "h-[120px] min-h-[120px] w-full",
15289
15337
  titleContainer: "flex flex-col grow",
@@ -15798,7 +15846,7 @@ var Drawer = ({
15798
15846
  }
15799
15847
  const { opacity, right } = useSpring4({
15800
15848
  right: open ? "0px" : `-${WIDTHS[size]}px`,
15801
- opacity: open ? 0.6 : 0,
15849
+ opacity: open ? 0.3 : 0,
15802
15850
  config: {
15803
15851
  mass: 0.5,
15804
15852
  tension: 150,
@@ -15895,7 +15943,7 @@ var DropdownMenu3 = ({
15895
15943
  const id = setTimeout(() => (menuRef.current?.children[0]).focus());
15896
15944
  return () => clearTimeout(id);
15897
15945
  }, [menuRef.current]);
15898
- return /* @__PURE__ */ React96.createElement("div", { style: { minWidth: "250px" }, className: "py-3 bg-popover-content" }, !!title && /* @__PURE__ */ React96.createElement("div", { className: "px-4 py-4 text-left text-intense typography-default-strong" }, title), /* @__PURE__ */ React96.createElement("ol", { role: "menu", ref: menuRef, id: contentId, "aria-labelledby": triggerId }, React96.Children.map(children, (child) => {
15946
+ return /* @__PURE__ */ React96.createElement("div", { style: { minWidth: "250px" }, className: "py-3 bg-overlay" }, !!title && /* @__PURE__ */ React96.createElement("div", { className: "px-4 py-4 text-left text-intense typography-default-strong" }, title), /* @__PURE__ */ React96.createElement("ol", { role: "menu", ref: menuRef, id: contentId, "aria-labelledby": triggerId }, React96.Children.map(children, (child) => {
15899
15947
  return React96.cloneElement(child, { setClose });
15900
15948
  })));
15901
15949
  };
@@ -17698,7 +17746,7 @@ var stepStyles = tv31({
17698
17746
  slots: ["indicator"],
17699
17747
  dense: true,
17700
17748
  state: "active",
17701
- class: "bg-body-intense"
17749
+ class: "bg-inverse"
17702
17750
  },
17703
17751
  {
17704
17752
  slots: ["indicator"],
@@ -367,7 +367,8 @@
367
367
  "100": "var(--aquarium-colors-warning-100)",
368
368
  "muted": "var(--aquarium-background-color-warning-muted)",
369
369
  "default": "var(--aquarium-background-color-warning-default)",
370
- "intense": "var(--aquarium-background-color-warning-intense)"
370
+ "intense": "var(--aquarium-background-color-warning-intense)",
371
+ "inverse": "var(--aquarium-background-color-warning-inverse)"
371
372
  },
372
373
  "success": {
373
374
  "0": "var(--aquarium-colors-success-0)",
@@ -384,7 +385,8 @@
384
385
  "100": "var(--aquarium-colors-success-100)",
385
386
  "muted": "var(--aquarium-background-color-success-muted)",
386
387
  "default": "var(--aquarium-background-color-success-default)",
387
- "intense": "var(--aquarium-background-color-success-intense)"
388
+ "intense": "var(--aquarium-background-color-success-intense)",
389
+ "inverse": "var(--aquarium-background-color-success-inverse)"
388
390
  },
389
391
  "info": {
390
392
  "0": "var(--aquarium-colors-info-0)",
@@ -401,7 +403,8 @@
401
403
  "100": "var(--aquarium-colors-info-100)",
402
404
  "muted": "var(--aquarium-background-color-info-muted)",
403
405
  "default": "var(--aquarium-background-color-info-default)",
404
- "intense": "var(--aquarium-background-color-info-intense)"
406
+ "intense": "var(--aquarium-background-color-info-intense)",
407
+ "inverse": "var(--aquarium-background-color-info-inverse)"
405
408
  },
406
409
  "grey": {
407
410
  "0": "var(--aquarium-colors-grey-0)",
@@ -451,15 +454,27 @@
451
454
  "hover": "var(--aquarium-background-color-primary-hover)"
452
455
  },
453
456
  "body": "var(--aquarium-background-color-body)",
457
+ "layer": "var(--aquarium-background-color-layer)",
454
458
  "body-intense": "var(--aquarium-background-color-body-intense)",
459
+ "inverse": "var(--aquarium-background-color-inverse)",
460
+ "overlay": "var(--aquarium-background-color-overlay)",
455
461
  "popover-content": "var(--aquarium-background-color-popover-content)",
456
462
  "muted": "var(--aquarium-background-color-muted)",
457
463
  "default": "var(--aquarium-background-color-default)",
458
464
  "intense": "var(--aquarium-background-color-intense)",
465
+ "action": {
466
+ "primary-button": {
467
+ "default": "var(--aquarium-background-color-action-primary-button-default)",
468
+ "active": "var(--aquarium-background-color-action-primary-button-active)",
469
+ "hover": "var(--aquarium-background-color-action-primary-button-hover)",
470
+ "disabled": "var(--aquarium-background-color-action-primary-button-disabled)"
471
+ }
472
+ },
459
473
  "danger": {
460
474
  "muted": "var(--aquarium-background-color-danger-muted)",
461
475
  "default": "var(--aquarium-background-color-danger-default)",
462
- "intense": "var(--aquarium-background-color-danger-intense)"
476
+ "intense": "var(--aquarium-background-color-danger-intense)",
477
+ "inverse": "var(--aquarium-background-color-danger-inverse)"
463
478
  },
464
479
  "status": {
465
480
  "announcement": "var(--aquarium-background-color-status-announcement)",
@@ -723,6 +738,15 @@
723
738
  "muted": "var(--aquarium-border-color-muted)",
724
739
  "default": "var(--aquarium-border-color-default)",
725
740
  "intense": "var(--aquarium-border-color-intense)",
741
+ "action": {
742
+ "focus": "var(--aquarium-border-color-action-focus)",
743
+ "secondary-button": {
744
+ "default": "var(--aquarium-border-color-action-secondary-button-default)",
745
+ "active": "var(--aquarium-border-color-action-secondary-button-active)",
746
+ "hover": "var(--aquarium-border-color-action-secondary-button-hover)",
747
+ "disabled": "var(--aquarium-border-color-action-secondary-button-disabled)"
748
+ }
749
+ },
726
750
  "danger": {
727
751
  "muted": "var(--aquarium-border-color-danger-muted)",
728
752
  "default": "var(--aquarium-border-color-danger-default)",
package/dist/tokens.json CHANGED
@@ -20,7 +20,10 @@
20
20
  },
21
21
  "backgroundColor": {
22
22
  "body": "white",
23
+ "layer": "white",
23
24
  "body-intense": "rgba(58,58,68,1)",
25
+ "inverse": "rgba(58,58,68,1)",
26
+ "overlay": "white",
24
27
  "popover-content": "white",
25
28
  "muted": "rgba(247,247,250,1)",
26
29
  "default": "rgba(237,237,240,1)",
@@ -32,25 +35,37 @@
32
35
  "active": "rgba(243,246,255,1)",
33
36
  "hover": "rgba(243,246,255,1)"
34
37
  },
38
+ "action": {
39
+ "primary-button": {
40
+ "default": "rgba(53,69,190,1)",
41
+ "active": "rgba(243,246,255,1)",
42
+ "hover": "rgba(34,47,149,1)",
43
+ "disabled": "rgba(185,197,239,1)"
44
+ }
45
+ },
35
46
  "info": {
36
47
  "muted": "rgba(224,245,254,1)",
37
48
  "default": "rgba(3,153,227,1)",
38
- "intense": "rgba(1,116,186,1)"
49
+ "intense": "rgba(1,116,186,1)",
50
+ "inverse": "rgba(3,153,227,1)"
39
51
  },
40
52
  "success": {
41
53
  "muted": "rgba(236,247,237,1)",
42
54
  "default": "rgba(0,179,0,1)",
43
- "intense": "rgba(0,142,0,1)"
55
+ "intense": "rgba(0,142,0,1)",
56
+ "inverse": "rgba(0,179,0,1)"
44
57
  },
45
58
  "warning": {
46
59
  "muted": "rgba(255,248,234,1)",
47
60
  "default": "rgba(255,179,0,1)",
48
- "intense": "rgba(255,144,3,1)"
61
+ "intense": "rgba(255,144,3,1)",
62
+ "inverse": "rgba(255,179,0,1)"
49
63
  },
50
64
  "danger": {
51
65
  "muted": "rgba(255,203,210,1)",
52
66
  "default": "rgba(255,173,179,1)",
53
- "intense": "rgba(230,39,40,1)"
67
+ "intense": "rgba(230,39,40,1)",
68
+ "inverse": "rgba(216,0,5,1)"
54
69
  },
55
70
  "status": {
56
71
  "announcement": "rgba(243,246,255,1)",
@@ -72,6 +87,15 @@
72
87
  "default": "rgba(53,69,190,1)",
73
88
  "intense": "rgba(14,22,82,1)"
74
89
  },
90
+ "action": {
91
+ "focus": "rgba(53,69,190,1)",
92
+ "secondary-button": {
93
+ "default": "rgba(53,69,190,1)",
94
+ "active": "rgba(243,246,255,1)",
95
+ "hover": "rgba(243,246,255,1)",
96
+ "disabled": "rgba(129,142,236,1)"
97
+ }
98
+ },
75
99
  "info": {
76
100
  "muted": "rgba(40,180,244,1)",
77
101
  "default": "rgba(3,153,227,1)",