@aivenio/aquarium 6.1.1 → 6.3.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.
Files changed (43) hide show
  1. package/dist/_variables.scss +2 -1
  2. package/dist/atoms.cjs +200 -134
  3. package/dist/atoms.mjs +112 -46
  4. package/dist/charts.cjs +4 -3
  5. package/dist/charts.mjs +4 -3
  6. package/dist/src/atoms/ChoiceChip/ChoiceChip.js +3 -3
  7. package/dist/src/atoms/CommandPalette/CommandPalette.d.ts +16 -0
  8. package/dist/src/atoms/CommandPalette/CommandPalette.js +3 -1
  9. package/dist/src/atoms/DataList/DataList.js +1 -1
  10. package/dist/src/atoms/Modal/Modal.d.ts +73 -3
  11. package/dist/src/atoms/Modal/Modal.js +48 -41
  12. package/dist/src/atoms/Timeline/Timeline.d.ts +3 -2
  13. package/dist/src/atoms/Timeline/Timeline.js +2 -2
  14. package/dist/src/molecules/CommandPalette/CommandPalette.d.ts +12 -4
  15. package/dist/src/molecules/CommandPalette/CommandPalette.js +17 -5
  16. package/dist/src/molecules/CommandPalette/CommandPaletteProvider.js +86 -22
  17. package/dist/src/molecules/CommandPalette/findSubCommands.d.ts +13 -0
  18. package/dist/src/molecules/CommandPalette/findSubCommands.js +65 -0
  19. package/dist/src/molecules/CommandPalette/types.d.ts +31 -1
  20. package/dist/src/molecules/CommandPalette/types.js +10 -1
  21. package/dist/src/molecules/Modal/Modal.js +2 -2
  22. package/dist/src/molecules/Popover/Popover.d.ts +3 -0
  23. package/dist/src/molecules/Popover/Popover.js +1 -1
  24. package/dist/src/molecules/Section/Section.d.ts +9 -0
  25. package/dist/src/molecules/Section/Section.js +13 -6
  26. package/dist/src/molecules/SegmentedControl/SegmentedControl.js +3 -3
  27. package/dist/src/molecules/Table/Table.d.ts +3 -0
  28. package/dist/src/molecules/Table/Table.js +4 -1
  29. package/dist/src/molecules/TagLabel/TagLabel.d.ts +1 -1
  30. package/dist/src/molecules/TagLabel/TagLabel.js +1 -1
  31. package/dist/src/molecules/Timeline/Timeline.d.ts +3 -2
  32. package/dist/src/molecules/Timeline/Timeline.js +16 -4
  33. package/dist/src/molecules/Typography/Typography.d.ts +3 -0
  34. package/dist/src/molecules/Typography/Typography.js +1 -1
  35. package/dist/src/tokens/tokens.json +4 -3
  36. package/dist/src/utils/useScrollFade.d.ts +17 -0
  37. package/dist/src/utils/useScrollFade.js +44 -0
  38. package/dist/styles.css +59 -34
  39. package/dist/system.cjs +950 -730
  40. package/dist/system.mjs +906 -684
  41. package/dist/tokens.json +4 -3
  42. package/dist/tsconfig.module.tsbuildinfo +1 -1
  43. package/package.json +1 -1
package/dist/styles.css CHANGED
@@ -507,6 +507,7 @@ video {
507
507
  --aquarium-chart-colors-sequential-300: rgba(0, 150, 147, 1);
508
508
  --aquarium-chart-colors-sequential-400: rgba(0, 98, 96, 1);
509
509
  --aquarium-chart-colors-sequential-500: rgba(0, 74, 72, 1);
510
+ --aquarium-code-variable: rgba(123,45,139,1); /** Code block variable and identifiers */
510
511
  --aquarium-code-keyword: rgba(202, 33, 101, 1); /** Syntax: keyword */
511
512
  --aquarium-code-string: rgba(0, 127, 115, 1); /** Syntax: string */
512
513
  --aquarium-code-function: rgba(9, 128, 193, 1); /** Syntax: function */
@@ -621,7 +622,7 @@ video {
621
622
  --aquarium-background-color-muted: var(--aquarium-colors-grey-5);
622
623
  --aquarium-background-color-medium: var(--aquarium-colors-grey-10);
623
624
  --aquarium-background-color-intense: var(--aquarium-colors-grey-30);
624
- --aquarium-background-color-primary-default: var(--aquarium-colors-primary-0);
625
+ --aquarium-background-color-primary-default: var(--aquarium-colors-primary-5);
625
626
  --aquarium-background-color-primary-graphic: var(--aquarium-colors-primary-30);
626
627
  --aquarium-background-color-primary-inverse: var(--aquarium-colors-primary-60);
627
628
  --aquarium-background-color-primary-active: var(--aquarium-colors-primary-0);
@@ -1088,8 +1089,8 @@ video {
1088
1089
  .top-\[3px\]{
1089
1090
  top: 3px;
1090
1091
  }
1091
- .top-\[47px\]{
1092
- top: 47px;
1092
+ .top-\[43px\]{
1093
+ top: 43px;
1093
1094
  }
1094
1095
  .-z-10{
1095
1096
  z-index: -10;
@@ -1175,6 +1176,9 @@ video {
1175
1176
  margin-top: 12px;
1176
1177
  margin-bottom: 12px;
1177
1178
  }
1179
+ .-mt-1px{
1180
+ margin-top: -1px;
1181
+ }
1178
1182
  .mb-1{
1179
1183
  margin-bottom: 2px;
1180
1184
  }
@@ -2650,7 +2654,7 @@ video {
2650
2654
  background-color: var(--aquarium-background-color-primary-active);
2651
2655
  }
2652
2656
  .bg-primary-default{
2653
- background-color: rgba(240,254,254,1);
2657
+ background-color: rgba(217,249,248,1);
2654
2658
  background-color: var(--aquarium-background-color-primary-default);
2655
2659
  }
2656
2660
  .bg-primary-graphic{
@@ -2670,11 +2674,11 @@ video {
2670
2674
  background-color: var(--aquarium-background-color-primary-inverse);
2671
2675
  }
2672
2676
  .bg-primary-muted{
2673
- background-color: rgba(240,254,254,1);
2677
+ background-color: rgba(217,249,248,1);
2674
2678
  background-color: var(--aquarium-background-color-primary-muted);
2675
2679
  }
2676
2680
  .bg-status-announcement{
2677
- background-color: rgba(240,254,254,1);
2681
+ background-color: rgba(217,249,248,1);
2678
2682
  background-color: var(--aquarium-background-color-status-announcement);
2679
2683
  }
2680
2684
  .bg-status-danger{
@@ -3723,7 +3727,16 @@ code{
3723
3727
  /* the collapsible <Section> uses a different background color for the header element when expanded. To enhance the contrast between the header's background color and the secondary button's background color, we need to specifically change the secondary button's background to bg-body instead of bg-transparent. */
3724
3728
  background-color: rgba(255,255,255,1);
3725
3729
  background-color: var(--aquarium-background-color-body);
3726
- }
3730
+ }
3731
+ /*
3732
+ Nested corners: matching parent/child radius can make child bg bleed past the
3733
+ container curve. Use inner radius = outer radius - border width via design tokens.
3734
+ */
3735
+ .Aquarium-SegmentedControl {
3736
+ --aquarium-segmented-control-inner-radius: calc(
3737
+ var(--aquarium-border-radius-default) - var(--aquarium-border-width-default)
3738
+ );
3739
+ }
3727
3740
  .aquarium-theme-dark {
3728
3741
  --aquarium-border-color-muted: var(--aquarium-colors-grey-70);
3729
3742
  --aquarium-border-color-default: var(--aquarium-colors-grey-60);
@@ -3830,10 +3843,11 @@ code{
3830
3843
  --aquarium-text-color-danger-default: var(--aquarium-colors-error-20);
3831
3844
  --aquarium-text-color-danger-intense: var(--aquarium-text-color-danger-default);
3832
3845
 
3833
- /* Code block (syntax highlighting) */
3846
+ /* Code block (syntax highlighting) */
3834
3847
  --aquarium-code-background: var(--aquarium-background-color-body);
3835
3848
  --aquarium-code-text: var(--aquarium-text-color-default);
3836
3849
  --aquarium-code-keyword: rgba(223, 86, 242, 1);
3850
+ --aquarium-code-variable: rgba(192,132,252, 1);
3837
3851
  --aquarium-code-string: rgba(95, 250, 116, 1);
3838
3852
  --aquarium-code-function: rgba(89, 210, 244, 1);
3839
3853
  --aquarium-code-number: rgba(255, 229, 94, 1);
@@ -3912,7 +3926,7 @@ code{
3912
3926
  .aquarium-theme-dark .Aquarium-DropdownMenu\.Item.bg-muted,
3913
3927
  .aquarium-theme-dark .Aquarium-DropdownMenu\.Item.hover\:bg-muted:hover,
3914
3928
  .aquarium-theme-dark .Aquarium-Select\.Item.bg-muted,
3915
- .aquarium-theme-dark .Aquarium-Select\.Item.hover\:bg-muted:hover{
3929
+ .aquarium-theme-dark .Aquarium-Select\.Item.hover\:bg-muted:hover {
3916
3930
  background-color: rgba(235,235,235,1);
3917
3931
  background-color: var(--aquarium-background-color-medium);
3918
3932
  }
@@ -3929,7 +3943,7 @@ code{
3929
3943
  .aquarium-theme-dark .Aquarium-StatusChip {
3930
3944
  --aquarium-text-color-info-intense: var(--aquarium-text-color-info-default);
3931
3945
  }
3932
- .aquarium-theme-dark .Aquarium-Navigation li[role="presentation"] a[role="menuitem"] {
3946
+ .aquarium-theme-dark .Aquarium-Navigation li[role='presentation'] a[role='menuitem'] {
3933
3947
  --aquarium-text-color-primary-intense: var(--aquarium-text-color-primary-default);
3934
3948
  }
3935
3949
  /* In dark mode, both these popover related components(bg-overlay) and banner background(bg-muted) colors are set to grey-90. To avoid them blending together, we need to use a different color. */
@@ -3949,7 +3963,14 @@ code{
3949
3963
  .aquarium-theme-dark .Aquarium-Modal .Aquarium-InputChip, .aquarium-theme-dark .Aquarium-Dialog .Aquarium-InputChip, .aquarium-theme-dark .Aquarium-Drawer .Aquarium-InputChip, .aquarium-theme-dark .Aquarium-Popover .Aquarium-InputChip {
3950
3964
  --aquarium-background-color-muted: var(--aquarium-background-color-medium);
3951
3965
  }
3952
- .aquarium-theme-dark .Aquarium-Modal .Aquarium-InputChip [role="button"]:hover, .aquarium-theme-dark .Aquarium-Modal .Aquarium-InputChip [role="button"]:focus, .aquarium-theme-dark .Aquarium-Dialog .Aquarium-InputChip [role="button"]:hover, .aquarium-theme-dark .Aquarium-Dialog .Aquarium-InputChip [role="button"]:focus, .aquarium-theme-dark .Aquarium-Drawer .Aquarium-InputChip [role="button"]:hover, .aquarium-theme-dark .Aquarium-Drawer .Aquarium-InputChip [role="button"]:focus, .aquarium-theme-dark .Aquarium-Popover .Aquarium-InputChip [role="button"]:hover, .aquarium-theme-dark .Aquarium-Popover .Aquarium-InputChip [role="button"]:focus {
3966
+ .aquarium-theme-dark .Aquarium-Modal .Aquarium-InputChip [role='button']:hover,
3967
+ .aquarium-theme-dark .Aquarium-Modal .Aquarium-InputChip [role='button']:focus,
3968
+ .aquarium-theme-dark .Aquarium-Dialog .Aquarium-InputChip [role='button']:hover,
3969
+ .aquarium-theme-dark .Aquarium-Dialog .Aquarium-InputChip [role='button']:focus,
3970
+ .aquarium-theme-dark .Aquarium-Drawer .Aquarium-InputChip [role='button']:hover,
3971
+ .aquarium-theme-dark .Aquarium-Drawer .Aquarium-InputChip [role='button']:focus,
3972
+ .aquarium-theme-dark .Aquarium-Popover .Aquarium-InputChip [role='button']:hover,
3973
+ .aquarium-theme-dark .Aquarium-Popover .Aquarium-InputChip [role='button']:focus {
3953
3974
  --aquarium-background-color-intense: var(--aquarium-background-color-inactive);
3954
3975
  }
3955
3976
  .aquarium-theme-dark .Aquarium-Modal .Aquarium-Table .sticky, .aquarium-theme-dark .Aquarium-Modal .Aquarium-DataList .sticky, .aquarium-theme-dark .Aquarium-Modal .Aquarium-DataTable .sticky, .aquarium-theme-dark .Aquarium-Modal .Aquarium-ItemList .sticky, .aquarium-theme-dark .Aquarium-Dialog .Aquarium-Table .sticky, .aquarium-theme-dark .Aquarium-Dialog .Aquarium-DataList .sticky, .aquarium-theme-dark .Aquarium-Dialog .Aquarium-DataTable .sticky, .aquarium-theme-dark .Aquarium-Dialog .Aquarium-ItemList .sticky, .aquarium-theme-dark .Aquarium-Drawer .Aquarium-Table .sticky, .aquarium-theme-dark .Aquarium-Drawer .Aquarium-DataList .sticky, .aquarium-theme-dark .Aquarium-Drawer .Aquarium-DataTable .sticky, .aquarium-theme-dark .Aquarium-Drawer .Aquarium-ItemList .sticky, .aquarium-theme-dark .Aquarium-Popover .Aquarium-Table .sticky, .aquarium-theme-dark .Aquarium-Popover .Aquarium-DataList .sticky, .aquarium-theme-dark .Aquarium-Popover .Aquarium-DataTable .sticky, .aquarium-theme-dark .Aquarium-Popover .Aquarium-ItemList .sticky {
@@ -3960,24 +3981,24 @@ code{
3960
3981
  border: 1px solid rgba(225,225,225,1);
3961
3982
  border: 1px solid var(--aquarium-border-color-muted);
3962
3983
  }
3963
- .aquarium-theme-dark .Aquarium-Table div[role="columnheader"],
3984
+ .aquarium-theme-dark .Aquarium-Table div[role='columnheader'],
3964
3985
  .aquarium-theme-dark .Aquarium-Table thead th.border-intense,
3965
- .aquarium-theme-dark .Aquarium-DataList div[role="columnheader"],
3986
+ .aquarium-theme-dark .Aquarium-DataList div[role='columnheader'],
3966
3987
  .aquarium-theme-dark .Aquarium-DataList thead th.border-intense,
3967
- .aquarium-theme-dark .Aquarium-DataTable div[role="columnheader"],
3988
+ .aquarium-theme-dark .Aquarium-DataTable div[role='columnheader'],
3968
3989
  .aquarium-theme-dark .Aquarium-DataTable thead th.border-intense,
3969
- .aquarium-theme-dark .Aquarium-ItemList div[role="columnheader"],
3990
+ .aquarium-theme-dark .Aquarium-ItemList div[role='columnheader'],
3970
3991
  .aquarium-theme-dark .Aquarium-ItemList thead th.border-intense {
3971
3992
  border-color: rgba(181,181,183,1);
3972
3993
  border-color: var(--aquarium-border-color-default);
3973
3994
  }
3974
- .aquarium-theme-dark .Aquarium-Table div[role="cell"],
3995
+ .aquarium-theme-dark .Aquarium-Table div[role='cell'],
3975
3996
  .aquarium-theme-dark .Aquarium-Table tbody td,
3976
- .aquarium-theme-dark .Aquarium-DataList div[role="cell"],
3997
+ .aquarium-theme-dark .Aquarium-DataList div[role='cell'],
3977
3998
  .aquarium-theme-dark .Aquarium-DataList tbody td,
3978
- .aquarium-theme-dark .Aquarium-DataTable div[role="cell"],
3999
+ .aquarium-theme-dark .Aquarium-DataTable div[role='cell'],
3979
4000
  .aquarium-theme-dark .Aquarium-DataTable tbody td,
3980
- .aquarium-theme-dark .Aquarium-ItemList div[role="cell"],
4001
+ .aquarium-theme-dark .Aquarium-ItemList div[role='cell'],
3981
4002
  .aquarium-theme-dark .Aquarium-ItemList tbody td {
3982
4003
  border-color: rgba(225,225,225,1);
3983
4004
  border-color: var(--aquarium-border-color-muted);
@@ -4043,6 +4064,10 @@ code{
4043
4064
  content: var(--tw-content);
4044
4065
  z-index: 10;
4045
4066
  }
4067
+ .before\:-mb-5::before{
4068
+ content: var(--tw-content);
4069
+ margin-bottom: -16px;
4070
+ }
4046
4071
  .before\:h-5::before{
4047
4072
  content: var(--tw-content);
4048
4073
  height: 16px;
@@ -4096,9 +4121,9 @@ code{
4096
4121
  content: var(--tw-content);
4097
4122
  position: sticky;
4098
4123
  }
4099
- .after\:bottom-3::after{
4124
+ .after\:bottom-0::after{
4100
4125
  content: var(--tw-content);
4101
- bottom: 8px;
4126
+ bottom: 0px;
4102
4127
  }
4103
4128
  .after\:left-0::after{
4104
4129
  content: var(--tw-content);
@@ -4108,9 +4133,13 @@ code{
4108
4133
  content: var(--tw-content);
4109
4134
  z-index: 10;
4110
4135
  }
4111
- .after\:h-5::after{
4136
+ .after\:-mt-\[60px\]::after{
4112
4137
  content: var(--tw-content);
4113
- height: 16px;
4138
+ margin-top: -60px;
4139
+ }
4140
+ .after\:h-\[60px\]::after{
4141
+ content: var(--tw-content);
4142
+ height: 60px;
4114
4143
  }
4115
4144
  .after\:flex-shrink-0::after{
4116
4145
  content: var(--tw-content);
@@ -4137,21 +4166,17 @@ code{
4137
4166
  .first\:mt-0:first-child{
4138
4167
  margin-top: 0px;
4139
4168
  }
4140
- .first\:rounded-l:first-child{
4141
- border-top-left-radius: 4px;
4142
- border-top-left-radius: var(--aquarium-border-radius-default);
4143
- border-bottom-left-radius: 4px;
4144
- border-bottom-left-radius: var(--aquarium-border-radius-default);
4169
+ .first\:rounded-l-\[var\(--aquarium-segmented-control-inner-radius\)\]:first-child{
4170
+ border-top-left-radius: var(--aquarium-segmented-control-inner-radius);
4171
+ border-bottom-left-radius: var(--aquarium-segmented-control-inner-radius);
4145
4172
  }
4146
4173
  .first\:border-l-0:first-child{
4147
4174
  border-left-width: 0px;
4148
4175
  border-left-width: var(--aquarium-border-width-0);
4149
4176
  }
4150
- .last\:rounded-r:last-child{
4151
- border-top-right-radius: 4px;
4152
- border-top-right-radius: var(--aquarium-border-radius-default);
4153
- border-bottom-right-radius: 4px;
4154
- border-bottom-right-radius: var(--aquarium-border-radius-default);
4177
+ .last\:rounded-r-\[var\(--aquarium-segmented-control-inner-radius\)\]:last-child{
4178
+ border-top-right-radius: var(--aquarium-segmented-control-inner-radius);
4179
+ border-bottom-right-radius: var(--aquarium-segmented-control-inner-radius);
4155
4180
  }
4156
4181
  .last\:border-r-0:last-child{
4157
4182
  border-right-width: 0px;
@@ -4182,7 +4207,7 @@ code{
4182
4207
  background-color: var(--aquarium-background-color-primary-inverse);
4183
4208
  }
4184
4209
  .checked\:bg-primary-muted:checked{
4185
- background-color: rgba(240,254,254,1);
4210
+ background-color: rgba(217,249,248,1);
4186
4211
  background-color: var(--aquarium-background-color-primary-muted);
4187
4212
  }
4188
4213
  .checked\:opacity-50:checked{