@aivenio/aquarium 5.1.0 → 5.2.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
@@ -4468,7 +4468,7 @@ var inputContainerClasses = tv({
4468
4468
  variants: {
4469
4469
  variant: {
4470
4470
  default: "border px-3 py-[6px] border-default hover:border-intense bg-transparent",
4471
- disabled: "border px-3 py-[6px] cursor-not-allowed border-default bg-default",
4471
+ disabled: "border px-3 py-[6px] cursor-not-allowed border-default bg-medium",
4472
4472
  error: "border px-3 py-[6px] border-danger-default bg-transparent",
4473
4473
  focused: "border px-3 py-[6px] border-info-default bg-transparent",
4474
4474
  readOnly: "cursor-default border-default bg-transparent"
@@ -4476,7 +4476,7 @@ var inputContainerClasses = tv({
4476
4476
  }
4477
4477
  });
4478
4478
  var inputClasses = tv({
4479
- base: "grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-small bg-transparent disabled:cursor-not-allowed disabled:bg-default placeholder:text-inactive",
4479
+ base: "grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-small bg-transparent disabled:cursor-not-allowed disabled:bg-medium placeholder:text-inactive",
4480
4480
  variants: {
4481
4481
  disabled: {
4482
4482
  true: "text-inactive",
@@ -5412,7 +5412,9 @@ var tailwind_theme_default = {
5412
5412
  "100": "var(--aquarium-colors-primary-100)",
5413
5413
  muted: "var(--aquarium-background-color-primary-muted)",
5414
5414
  default: "var(--aquarium-background-color-primary-default)",
5415
+ graphic: "var(--aquarium-background-color-primary-graphic)",
5415
5416
  intense: "var(--aquarium-background-color-primary-intense)",
5417
+ inverse: "var(--aquarium-background-color-primary-inverse)",
5416
5418
  active: "var(--aquarium-background-color-primary-active)",
5417
5419
  hover: "var(--aquarium-background-color-primary-hover)"
5418
5420
  },
@@ -5424,6 +5426,7 @@ var tailwind_theme_default = {
5424
5426
  "popover-content": "var(--aquarium-background-color-popover-content)",
5425
5427
  muted: "var(--aquarium-background-color-muted)",
5426
5428
  default: "var(--aquarium-background-color-default)",
5429
+ medium: "var(--aquarium-background-color-medium)",
5427
5430
  intense: "var(--aquarium-background-color-intense)",
5428
5431
  action: {
5429
5432
  "primary-button": {
@@ -5945,11 +5948,14 @@ var tokens_default = {
5945
5948
  "popover-content": "white",
5946
5949
  muted: "rgba(247,247,250,1)",
5947
5950
  default: "rgba(237,237,240,1)",
5951
+ medium: "rgba(237,237,240,1)",
5948
5952
  intense: "rgba(210,210,214,1)",
5949
5953
  primary: {
5950
5954
  muted: "rgba(185,197,239,1)",
5951
5955
  default: "rgba(53,69,190,1)",
5956
+ graphic: "rgba(53,69,190,1)",
5952
5957
  intense: "rgba(34,47,149,1)",
5958
+ inverse: "rgba(34,47,149,1)",
5953
5959
  active: "rgba(243,246,255,1)",
5954
5960
  hover: "rgba(243,246,255,1)"
5955
5961
  },
@@ -6833,7 +6839,7 @@ import { tv as tv3 } from "tailwind-variants";
6833
6839
  import { clsx as clsx3 } from "clsx";
6834
6840
  import { tv as tv2 } from "tailwind-variants";
6835
6841
  var getCommonInputStyles = ({ readOnly, valid }) => clsx3(
6836
- "block w-full rounded-sm disabled:cursor-not-allowed disabled:border-default disabled:bg-default typography-small text-default disabled:text-inactive placeholder:text-inactive focus:outline-none",
6842
+ "block w-full rounded-sm disabled:cursor-not-allowed disabled:border-default disabled:bg-medium typography-small text-default disabled:text-inactive placeholder:text-inactive focus:outline-none",
6837
6843
  {
6838
6844
  "px-3 py-3 bg-transparent": !readOnly,
6839
6845
  "border-none resize-none cursor-default bg-transparent": readOnly,
@@ -7911,7 +7917,7 @@ import React25 from "react";
7911
7917
  import { isNumber, isUndefined as isUndefined6 } from "lodash-es";
7912
7918
  import { tv as tv7 } from "tailwind-variants";
7913
7919
  var skeletonStyles = tv7({
7914
- base: "bg-default",
7920
+ base: "bg-medium",
7915
7921
  variants: {
7916
7922
  hasHeight: {
7917
7923
  false: "h-auto before:content-['_'] whitespace-pre origin-[0%_45%] scale-[0.55]"
@@ -8215,7 +8221,7 @@ var getStatusClassNames = (status = "neutral") => {
8215
8221
  return "text-success-intense bg-status-success";
8216
8222
  case "neutral":
8217
8223
  default:
8218
- return "text-default bg-default";
8224
+ return "text-default bg-medium";
8219
8225
  }
8220
8226
  };
8221
8227
  var Chip2 = ({
@@ -8556,7 +8562,7 @@ var checkboxClasses = tv11({
8556
8562
  },
8557
8563
  false: {
8558
8564
  wrapper: "hover:border-intense peer-checked:border-primary-default",
8559
- input: "cursor-pointer checked:bg-primary-default",
8565
+ input: "cursor-pointer checked:bg-primary-graphic",
8560
8566
  icon: "border-default peer-hover:border-intense peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-default"
8561
8567
  }
8562
8568
  }
@@ -8585,7 +8591,7 @@ var Checkbox = React35.forwardRef(
8585
8591
  import React36 from "react";
8586
8592
  import { tv as tv12 } from "tailwind-variants";
8587
8593
  var radioButtonClasses = tv12({
8588
- base: "inline-flex justify-center items-center self-center appearance-none w-5 h-5 p-[3px] rounded-full border border-default outline-none focus:border-info-default checked:bg-primary-default checked:shadow-bodyInset",
8594
+ base: "inline-flex justify-center items-center self-center appearance-none w-5 h-5 p-[3px] rounded-full border border-default outline-none focus:border-info-default checked:bg-primary-graphic checked:shadow-bodyInset",
8589
8595
  variants: {
8590
8596
  disabled: {
8591
8597
  true: "cursor-not-allowed border-muted bg-muted checked:bg-primary-muted checked:border-transparent",
@@ -11228,7 +11234,7 @@ var dropdownMenuGroupStyles = tv17({
11228
11234
  slots: {
11229
11235
  base: [
11230
11236
  '[&:not(:first-child)]:before:content-[""] [&:not(:first-child)]:before:block',
11231
- "[&:not(:first-child)]:before:h-[1px] [&:not(:first-child)]:before:bg-default [&:not(:first-child)]:before:m-3"
11237
+ "[&:not(:first-child)]:before:h-[1px] [&:not(:first-child)]:before:bg-medium [&:not(:first-child)]:before:m-3"
11232
11238
  ],
11233
11239
  title: "p-3 text-inactive uppercase cursor-default typography-caption"
11234
11240
  }
@@ -11338,7 +11344,7 @@ var fieldBorder = tv18({
11338
11344
  true: "border-danger-default"
11339
11345
  },
11340
11346
  isDisabled: {
11341
- true: "bg-default cursor-not-allowed text-inactive"
11347
+ true: "bg-medium cursor-not-allowed text-inactive"
11342
11348
  }
11343
11349
  }
11344
11350
  });
@@ -12452,8 +12458,8 @@ var cellStyles = tv21({
12452
12458
  base: "w-8 h-8 typography-small cursor-default rounded-md flex items-center justify-center outside-month:hidden",
12453
12459
  variants: {
12454
12460
  isSelected: {
12455
- false: "text-default hover:bg-default pressed:bg-intense",
12456
- true: "bg-primary-default invalid:bg-danger-default text-white"
12461
+ false: "text-default hover:bg-medium pressed:bg-intense",
12462
+ true: "bg-primary-graphic invalid:bg-danger-default text-white"
12457
12463
  },
12458
12464
  isUnavailable: {
12459
12465
  true: "text-inactive"
@@ -15153,7 +15159,7 @@ import { tv as tv23 } from "tailwind-variants";
15153
15159
  var cellContainer = tv23({
15154
15160
  base: [
15155
15161
  "group w-8 h-8 typography-small outline outline-0 cursor-default",
15156
- "outside-month:hidden selected:bg-primary-default",
15162
+ "outside-month:hidden selected:bg-primary-graphic",
15157
15163
  "invalid:selected:bg-danger-default",
15158
15164
  "selection-start:rounded-s-md selection-end:rounded-e-md"
15159
15165
  ]
@@ -15163,15 +15169,15 @@ var cell = tv23({
15163
15169
  base: "w-full h-full flex items-center justify-center rounded-md text-default",
15164
15170
  variants: {
15165
15171
  selectionState: {
15166
- none: "group-hover:bg-default group-pressed:bg-intense",
15172
+ none: "group-hover:bg-medium group-pressed:bg-intense",
15167
15173
  middle: [
15168
15174
  "text-white",
15169
- "group-hover:bg-primary-default",
15175
+ "group-hover:bg-primary-graphic",
15170
15176
  "group-invalid:group-hover:bg-danger-default",
15171
- "group-pressed:bg-primary-intense",
15177
+ "group-pressed:bg-primary-inverse",
15172
15178
  "group-invalid:group-pressed:bg-danger-intense"
15173
15179
  ],
15174
- cap: "text-white bg-primary-default group-invalid:bg-danger-default"
15180
+ cap: "text-white bg-primary-graphic group-invalid:bg-danger-default"
15175
15181
  },
15176
15182
  isUnavailable: {
15177
15183
  true: "text-inactive"
@@ -15379,7 +15385,7 @@ var modalStyles = tv24({
15379
15385
  headerImage: "object-cover"
15380
15386
  },
15381
15387
  false: {
15382
- headerImage: "bg-default"
15388
+ headerImage: "bg-medium"
15383
15389
  }
15384
15390
  }
15385
15391
  },
@@ -16210,7 +16216,7 @@ var FilterClearButton = ({ onClear }) => (
16210
16216
  }
16211
16217
  onClear();
16212
16218
  },
16213
- className: "py-[10px] pl-[6px] pr-4 inline-flex items-center hover:bg-default focus:bg-default outline-0 outline-none rounded-r-full"
16219
+ className: "py-[10px] pl-[6px] pr-4 inline-flex items-center hover:bg-medium focus:bg-medium outline-0 outline-none rounded-r-full"
16214
16220
  },
16215
16221
  /* @__PURE__ */ React98.createElement(InlineIcon, { icon: import_cross7.default })
16216
16222
  )
@@ -16281,7 +16287,7 @@ var ListItem = ({ name, icon, active = false }) => {
16281
16287
  variant: active ? "small-strong" : "small",
16282
16288
  color: "default",
16283
16289
  htmlTag: "span",
16284
- className: `px-4 py-2 rounded-full ${active ? "bg-default" : "hover:bg-muted"}`
16290
+ className: `px-4 py-2 rounded-full ${active ? "bg-medium" : "hover:bg-muted"}`
16285
16291
  },
16286
16292
  /* @__PURE__ */ React101.createElement("img", { src: icon, alt: "", className: "inline mr-4", height: 28, width: 28 }),
16287
16293
  name
@@ -16367,7 +16373,7 @@ var InputChip = React103.forwardRef(
16367
16373
  {
16368
16374
  "bg-status-danger": invalid,
16369
16375
  "bg-muted": !invalid && !disabled,
16370
- "bg-default": disabled
16376
+ "bg-medium": disabled
16371
16377
  }
16372
16378
  )
16373
16379
  },
@@ -16865,7 +16871,7 @@ var NativeSelectBase = React106.forwardRef(
16865
16871
  className: clsx37(
16866
16872
  "block w-full rounded-sm appearance-none disabled:cursor-not-allowed typography-small text-default placeholder:text-inactive focus:outline-none",
16867
16873
  {
16868
- "px-3 py-3 bg-transparent disabled:border-default disabled:bg-default disabled:text-inactive": !readOnly,
16874
+ "px-3 py-3 bg-transparent disabled:border-default disabled:bg-medium disabled:text-inactive": !readOnly,
16869
16875
  "px-0 py-3 border-none bg-transparent": readOnly,
16870
16876
  "border border-danger-default": !valid && !readOnly,
16871
16877
  "border border-default hover:border-intense focus:border-info-default": valid && !readOnly
@@ -16944,9 +16950,9 @@ var navigationClasses = tv26({
16944
16950
  sectionList: "flex flex-col",
16945
16951
  divider: "border-t-2 border-muted",
16946
16952
  itemContainer: "",
16947
- itemAnchor: "py-3 px-6 hover:bg-default cursor-pointer flex gap-4 items-center typography-small focusable",
16953
+ itemAnchor: "py-3 px-6 hover:bg-medium cursor-pointer flex gap-4 items-center typography-small focusable",
16948
16954
  submenuContainer: "",
16949
- submenuAnchor: "py-3 pr-6 pl-3 hover:bg-default cursor-pointer typography-small focusable flex items-center w-full",
16955
+ submenuAnchor: "py-3 pr-6 pl-3 hover:bg-medium cursor-pointer typography-small focusable flex items-center w-full",
16950
16956
  submenuList: "flex flex-col",
16951
16957
  submenuItem: "pl-[56px]"
16952
16958
  },
@@ -17367,10 +17373,10 @@ var switchStyles = tv29({
17367
17373
  variants: {
17368
17374
  disabled: {
17369
17375
  true: {
17370
- input: "bg-default checked:opacity-50 checked:bg-primary-muted"
17376
+ input: "bg-medium checked:opacity-50 checked:bg-primary-muted"
17371
17377
  },
17372
17378
  false: {
17373
- input: "bg-intense hover:bg-intense checked:bg-primary-default hover:checked:bg-primary-intense",
17379
+ input: "bg-intense hover:bg-intense checked:bg-primary-graphic hover:checked:bg-primary-inverse",
17374
17380
  thumb: "shadow-4dp"
17375
17381
  }
17376
17382
  }
@@ -17437,14 +17443,14 @@ import { clsx as clsx41 } from "clsx";
17437
17443
  var getVariantClassNames = (variant = "primary") => {
17438
17444
  switch (variant) {
17439
17445
  case "neutral":
17440
- return "bg-default";
17446
+ return "bg-medium";
17441
17447
  case "danger":
17442
17448
  return "bg-danger-intense";
17443
17449
  case "success":
17444
17450
  return "bg-success-intense";
17445
17451
  case "primary":
17446
17452
  default:
17447
- return "bg-primary-default";
17453
+ return "bg-primary-graphic";
17448
17454
  }
17449
17455
  };
17450
17456
  var TagLabel = ({ title, dense = false, variant, ...rest }) => /* @__PURE__ */ React119.createElement(
@@ -17922,7 +17928,7 @@ var Timeline = ({ className, ...rest }) => /* @__PURE__ */ React127.createElemen
17922
17928
  var Content2 = ({ className, ...rest }) => /* @__PURE__ */ React127.createElement("div", { ...rest, className: clsx45("pb-6", className) });
17923
17929
  var Separator = ({ className, ...rest }) => /* @__PURE__ */ React127.createElement("div", { ...rest, className: clsx45("flex items-center justify-center h-5 w-5", className) });
17924
17930
  var LineContainer = ({ className, ...rest }) => /* @__PURE__ */ React127.createElement("div", { ...rest, className: clsx45("flex justify-center py-1", className) });
17925
- var Line = ({ className, ...rest }) => /* @__PURE__ */ React127.createElement("div", { ...rest, className: clsx45("w-1 bg-default h-full justify-self-center", className) });
17931
+ var Line = ({ className, ...rest }) => /* @__PURE__ */ React127.createElement("div", { ...rest, className: clsx45("w-1 bg-medium h-full justify-self-center", className) });
17926
17932
  var Dot = ({ className, ...rest }) => /* @__PURE__ */ React127.createElement("div", { ...rest, className: clsx45("bg-intense h-[6px] w-[6px] rounded", className) });
17927
17933
  Separator.Dot = Dot;
17928
17934
  LineContainer.Line = Line;
@@ -449,7 +449,9 @@
449
449
  "100": "var(--aquarium-colors-primary-100)",
450
450
  "muted": "var(--aquarium-background-color-primary-muted)",
451
451
  "default": "var(--aquarium-background-color-primary-default)",
452
+ "graphic": "var(--aquarium-background-color-primary-graphic)",
452
453
  "intense": "var(--aquarium-background-color-primary-intense)",
454
+ "inverse": "var(--aquarium-background-color-primary-inverse)",
453
455
  "active": "var(--aquarium-background-color-primary-active)",
454
456
  "hover": "var(--aquarium-background-color-primary-hover)"
455
457
  },
@@ -461,6 +463,7 @@
461
463
  "popover-content": "var(--aquarium-background-color-popover-content)",
462
464
  "muted": "var(--aquarium-background-color-muted)",
463
465
  "default": "var(--aquarium-background-color-default)",
466
+ "medium": "var(--aquarium-background-color-medium)",
464
467
  "intense": "var(--aquarium-background-color-intense)",
465
468
  "action": {
466
469
  "primary-button": {
package/dist/tokens.json CHANGED
@@ -27,11 +27,14 @@
27
27
  "popover-content": "white",
28
28
  "muted": "rgba(247,247,250,1)",
29
29
  "default": "rgba(237,237,240,1)",
30
+ "medium": "rgba(237,237,240,1)",
30
31
  "intense": "rgba(210,210,214,1)",
31
32
  "primary": {
32
33
  "muted": "rgba(185,197,239,1)",
33
34
  "default": "rgba(53,69,190,1)",
35
+ "graphic": "rgba(53,69,190,1)",
34
36
  "intense": "rgba(34,47,149,1)",
37
+ "inverse": "rgba(34,47,149,1)",
35
38
  "active": "rgba(243,246,255,1)",
36
39
  "hover": "rgba(243,246,255,1)"
37
40
  },