@aivenio/aquarium 1.38.2 → 1.40.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/atoms.mjs CHANGED
@@ -3830,566 +3830,6 @@ var require_tokens = __commonJS({
3830
3830
  "tokens.json"(exports, module) {
3831
3831
  module.exports = {
3832
3832
  themes: {
3833
- timescale: {
3834
- colors: {
3835
- "error-100": "#aa0000",
3836
- "error-90": "#b90000",
3837
- "error-80": "#c50001",
3838
- "error-70": "#d80005",
3839
- "error-60": "#e70000",
3840
- "error-50": "#e62728",
3841
- "error-40": "#e0504f",
3842
- "error-30": "#ed7975",
3843
- "error-20": "#ffadb3",
3844
- "error-10": "#ffcbd2",
3845
- "error-5": "#fee8e7",
3846
- "error-0": "#fef2f1",
3847
- "warning-100": "#fe6d00",
3848
- "warning-90": "#ff9003",
3849
- "warning-80": "#fd9f00",
3850
- "warning-70": "#ffb300",
3851
- "warning-60": "#ffc107",
3852
- "warning-50": "#fdc926",
3853
- "warning-40": "#fdd44d",
3854
- "warning-30": "#fddf81",
3855
- "warning-20": "#feebb2",
3856
- "warning-10": "#fff2cd",
3857
- "warning-5": "#fff8ea",
3858
- "warning-0": "#fffdf9",
3859
- "success-100": "#006f00",
3860
- "success-90": "#008e00",
3861
- "success-80": "#009f00",
3862
- "success-70": "#00b300",
3863
- "success-60": "#00c300",
3864
- "success-50": "#40ce37",
3865
- "success-40": "#60db57",
3866
- "success-30": "#89eb80",
3867
- "success-20": "#afffa7",
3868
- "success-10": "#cbffc9",
3869
- "success-5": "#ecf7ed",
3870
- "success-0": "#f5faf5",
3871
- "info-100": "#02569a",
3872
- "info-90": "#0174ba",
3873
- "info-80": "#0788d1",
3874
- "info-70": "#0399e3",
3875
- "info-60": "#02a8f3",
3876
- "info-50": "#28b4f4",
3877
- "info-40": "#4cc2f7",
3878
- "info-30": "#7fd1f7",
3879
- "info-20": "#b4e5fb",
3880
- "info-10": "#e0f5fe",
3881
- "info-5": "#effaff",
3882
- "info-0": "#f9fdff",
3883
- "grey-100": "#19191d",
3884
- "grey-90": "#292a31",
3885
- "grey-80": "#3a3a44",
3886
- "grey-70": "#4a4b57",
3887
- "grey-60": "#5a5b6a",
3888
- "grey-50": "#787885",
3889
- "grey-40": "#9696a0",
3890
- "grey-30": "#b4b4bb",
3891
- "grey-20": "#d2d2d6",
3892
- "grey-10": "#e1e1e3",
3893
- "grey-5": "#ededf0",
3894
- "grey-0": "#f7f7fa",
3895
- "secondary-100": "#e11d16",
3896
- "secondary-90": "#eb4610",
3897
- "secondary-80": "#f3580d",
3898
- "secondary-70": "#f96a02",
3899
- "secondary-60": "#ff7700",
3900
- "secondary-50": "#fc871a",
3901
- "secondary-40": "#fb9a3e",
3902
- "secondary-30": "#fab26e",
3903
- "secondary-20": "#f8c99c",
3904
- "secondary-10": "#fee8d0",
3905
- "secondary-5": "#fff3e8",
3906
- "secondary-0": "#fffbf8",
3907
- "primary-100": "#02569a",
3908
- "primary-90": "#0174ba",
3909
- "primary-80": "#0788d1",
3910
- "primary-70": "#0399e3",
3911
- "primary-60": "#02a8f3",
3912
- "primary-50": "#28b4f4",
3913
- "primary-40": "#4cc2f7",
3914
- "primary-30": "#7fd1f7",
3915
- "primary-20": "#b4e5fb",
3916
- "primary-10": "#e0f5fe",
3917
- "primary-5": "#effaff",
3918
- "primary-0": "#f9fdff"
3919
- },
3920
- typography: {
3921
- sizes: [
3922
- {
3923
- name: "large-heading",
3924
- className: "typography-large-heading",
3925
- style: {
3926
- fontFamily: "Inter",
3927
- fontSize: "32px",
3928
- fontWeight: 700,
3929
- fontStyle: "normal",
3930
- lineHeight: 1.375,
3931
- textTransform: "none"
3932
- },
3933
- fontPostScriptName: "Inter-Bold"
3934
- },
3935
- {
3936
- name: "heading",
3937
- className: "typography-heading",
3938
- style: {
3939
- fontFamily: "Inter",
3940
- fontSize: "24px",
3941
- fontWeight: 700,
3942
- fontStyle: "normal",
3943
- lineHeight: 1.375,
3944
- textTransform: "none"
3945
- },
3946
- fontPostScriptName: "Inter-Bold"
3947
- },
3948
- {
3949
- name: "subheading",
3950
- className: "typography-subheading",
3951
- style: {
3952
- fontFamily: "Inter",
3953
- fontSize: "20px",
3954
- fontWeight: 600,
3955
- fontStyle: "normal",
3956
- lineHeight: 1.375,
3957
- textTransform: "none"
3958
- },
3959
- fontPostScriptName: "Inter-Bold"
3960
- },
3961
- {
3962
- name: "large-strong",
3963
- className: "typography-large-strong",
3964
- style: {
3965
- fontFamily: "Inter",
3966
- fontSize: "20px",
3967
- fontWeight: 600,
3968
- fontStyle: "normal",
3969
- lineHeight: 1.58,
3970
- textTransform: "none"
3971
- },
3972
- fontPostScriptName: "Inter-SemiBold"
3973
- },
3974
- {
3975
- name: "large",
3976
- className: "typography-large",
3977
- style: {
3978
- fontFamily: "Inter",
3979
- fontSize: "20px",
3980
- fontWeight: 500,
3981
- fontStyle: "normal",
3982
- lineHeight: 1.58,
3983
- textTransform: "none"
3984
- },
3985
- fontPostScriptName: "Inter-SemiBold"
3986
- },
3987
- {
3988
- name: "default-strong",
3989
- className: "typography-default-strong",
3990
- style: {
3991
- fontFamily: "Inter",
3992
- fontSize: "16px",
3993
- fontWeight: 500,
3994
- fontStyle: "normal",
3995
- lineHeight: 1.5,
3996
- textTransform: "none"
3997
- },
3998
- fontPostScriptName: "Inter-SemiBold"
3999
- },
4000
- {
4001
- name: "default",
4002
- className: "typography-default",
4003
- style: {
4004
- fontFamily: "Inter",
4005
- fontSize: "16px",
4006
- fontWeight: 400,
4007
- fontStyle: "normal",
4008
- lineHeight: 1.5,
4009
- textTransform: "none"
4010
- },
4011
- fontPostScriptName: null
4012
- },
4013
- {
4014
- name: "small-strong",
4015
- className: "typography-small-strong",
4016
- style: {
4017
- fontFamily: "Inter",
4018
- fontSize: "14px",
4019
- fontWeight: 500,
4020
- fontStyle: "normal",
4021
- lineHeight: 1.42,
4022
- textTransform: "none"
4023
- },
4024
- fontPostScriptName: "Inter-SemiBold"
4025
- },
4026
- {
4027
- name: "small",
4028
- className: "typography-small",
4029
- style: {
4030
- fontFamily: "Inter",
4031
- fontSize: "14px",
4032
- fontWeight: 400,
4033
- fontStyle: "normal",
4034
- lineHeight: 1.42,
4035
- textTransform: "none"
4036
- },
4037
- fontPostScriptName: null
4038
- },
4039
- {
4040
- name: "caption",
4041
- className: "typography-caption",
4042
- style: {
4043
- fontFamily: "Inter",
4044
- fontSize: "12px",
4045
- fontWeight: 400,
4046
- fontStyle: "normal",
4047
- lineHeight: 1.26,
4048
- textTransform: "none"
4049
- },
4050
- fontPostScriptName: null
4051
- },
4052
- {
4053
- name: "caption-small",
4054
- className: "typography-caption-small",
4055
- style: {
4056
- fontFamily: "Inter",
4057
- fontSize: "10px",
4058
- fontWeight: 400,
4059
- fontStyle: "normal",
4060
- lineHeight: 1.2,
4061
- textTransform: "none"
4062
- },
4063
- fontPostScriptName: null
4064
- },
4065
- {
4066
- name: "caption-default",
4067
- className: "typography-caption-default",
4068
- style: {
4069
- fontFamily: "Inter",
4070
- fontSize: "12px",
4071
- fontWeight: 400,
4072
- fontStyle: "normal",
4073
- lineHeight: 1.26,
4074
- letterSpacing: 0,
4075
- textTransform: "none"
4076
- },
4077
- fontPostScriptName: null
4078
- },
4079
- {
4080
- name: "overline-small",
4081
- className: "typography-overline-small",
4082
- style: {
4083
- fontFamily: "Inter",
4084
- fontSize: "10px",
4085
- fontWeight: 400,
4086
- fontStyle: "normal",
4087
- lineHeight: 1,
4088
- letterSpacing: 0,
4089
- textTransform: "uppercase"
4090
- },
4091
- fontPostScriptName: null
4092
- },
4093
- {
4094
- name: "overline-default",
4095
- className: "typography-overline-default",
4096
- style: {
4097
- fontFamily: "Inter",
4098
- fontSize: "12px",
4099
- fontWeight: 400,
4100
- fontStyle: "normal",
4101
- lineHeight: 1,
4102
- letterSpacing: 0,
4103
- textTransform: "uppercase"
4104
- },
4105
- fontPostScriptName: null
4106
- },
4107
- {
4108
- name: "button-small",
4109
- className: "typography-button-small",
4110
- style: {
4111
- fontFamily: "Inter",
4112
- fontSize: "12px",
4113
- fontWeight: 500,
4114
- fontStyle: "normal",
4115
- lineHeight: 1,
4116
- letterSpacing: 0,
4117
- textTransform: "none"
4118
- },
4119
- fontPostScriptName: "Inter-Medium"
4120
- },
4121
- {
4122
- name: "button-medium",
4123
- className: "typography-button-medium",
4124
- style: {
4125
- fontFamily: "Inter",
4126
- fontSize: "14px",
4127
- fontWeight: 400,
4128
- fontStyle: "normal",
4129
- lineHeight: 1,
4130
- letterSpacing: 0,
4131
- textTransform: "none"
4132
- },
4133
- fontPostScriptName: "Inter-SemiBold"
4134
- },
4135
- {
4136
- name: "button-large",
4137
- className: "typography-button-large",
4138
- style: {
4139
- fontFamily: "Inter",
4140
- fontSize: "16px",
4141
- fontWeight: 500,
4142
- fontStyle: "normal",
4143
- lineHeight: 1.5,
4144
- letterSpacing: 0,
4145
- textTransform: "none"
4146
- },
4147
- fontPostScriptName: "Inter-Medium"
4148
- },
4149
- {
4150
- name: "body-small",
4151
- className: "typography-body-small",
4152
- style: {
4153
- fontFamily: "Inter",
4154
- fontSize: "14px",
4155
- fontWeight: 400,
4156
- fontStyle: "normal",
4157
- lineHeight: 1.43,
4158
- letterSpacing: 0,
4159
- textTransform: "none"
4160
- },
4161
- fontPostScriptName: null
4162
- },
4163
- {
4164
- name: "body-small-medium",
4165
- className: "typography-body-small-medium",
4166
- style: {
4167
- fontFamily: "Inter",
4168
- fontSize: "14px",
4169
- fontWeight: 500,
4170
- fontStyle: "normal",
4171
- lineHeight: 1.43,
4172
- letterSpacing: 0,
4173
- textTransform: "none"
4174
- },
4175
- fontPostScriptName: "Inter-SemiBold"
4176
- },
4177
- {
4178
- name: "body-default",
4179
- className: "typography-body-default",
4180
- style: {
4181
- fontFamily: "Inter",
4182
- fontSize: "16px",
4183
- fontWeight: 400,
4184
- fontStyle: "normal",
4185
- lineHeight: 1.5,
4186
- letterSpacing: 0,
4187
- textTransform: "none"
4188
- },
4189
- fontPostScriptName: null
4190
- },
4191
- {
4192
- name: "body-default-medium",
4193
- className: "typography-body-default-medium",
4194
- style: {
4195
- fontFamily: "Inter",
4196
- fontSize: "16px",
4197
- fontWeight: 500,
4198
- fontStyle: "normal",
4199
- lineHeight: 1.5,
4200
- letterSpacing: 0,
4201
- textTransform: "none"
4202
- },
4203
- fontPostScriptName: "Inter-SemiBold"
4204
- },
4205
- {
4206
- name: "body-large",
4207
- className: "typography-body-large",
4208
- style: {
4209
- fontFamily: "Inter",
4210
- fontSize: "20px",
4211
- fontWeight: 400,
4212
- fontStyle: "normal",
4213
- lineHeight: 1.58,
4214
- letterSpacing: 0,
4215
- textTransform: "none"
4216
- },
4217
- fontPostScriptName: null
4218
- },
4219
- {
4220
- name: "body-large-medium",
4221
- className: "typography-body-large-medium",
4222
- style: {
4223
- fontFamily: "Inter",
4224
- fontSize: "20px",
4225
- fontWeight: 400,
4226
- fontStyle: "normal",
4227
- lineHeight: 1.2,
4228
- letterSpacing: 0,
4229
- textTransform: "none"
4230
- },
4231
- fontPostScriptName: "Inter-SemiBold"
4232
- },
4233
- {
4234
- name: "heading-large",
4235
- className: "typography-heading-large",
4236
- style: {
4237
- fontFamily: "Inter",
4238
- fontSize: "20px",
4239
- fontWeight: 700,
4240
- fontStyle: "normal",
4241
- lineHeight: 1.5,
4242
- letterSpacing: 0.15,
4243
- textTransform: "none"
4244
- },
4245
- fontPostScriptName: "Inter-Bold"
4246
- },
4247
- {
4248
- name: "heading-xl",
4249
- className: "typography-heading-xl",
4250
- style: {
4251
- fontFamily: "Inter",
4252
- fontSize: "24px",
4253
- fontWeight: 700,
4254
- fontStyle: "normal",
4255
- lineHeight: 1.5,
4256
- letterSpacing: 0,
4257
- textTransform: "none"
4258
- },
4259
- fontPostScriptName: "Inter-Bold"
4260
- },
4261
- {
4262
- name: "heading-2xl",
4263
- className: "typography-heading-2xl",
4264
- style: {
4265
- fontFamily: "Inter",
4266
- fontSize: "34px",
4267
- fontWeight: 700,
4268
- fontStyle: "normal",
4269
- lineHeight: 1.28,
4270
- letterSpacing: 0,
4271
- textTransform: "none"
4272
- },
4273
- fontPostScriptName: "Inter-Bold"
4274
- },
4275
- {
4276
- name: "heading-3xl",
4277
- className: "typography-heading-3xl",
4278
- style: {
4279
- fontFamily: "Inter",
4280
- fontSize: "48px",
4281
- fontWeight: 700,
4282
- fontStyle: "normal",
4283
- lineHeight: 1.24,
4284
- letterSpacing: -0.48,
4285
- textTransform: "none"
4286
- },
4287
- fontPostScriptName: "Inter-Bold"
4288
- },
4289
- {
4290
- name: "heading-4xl",
4291
- className: "typography-heading-4xl",
4292
- style: {
4293
- fontFamily: "Inter",
4294
- fontSize: "60px",
4295
- fontWeight: 700,
4296
- fontStyle: "normal",
4297
- lineHeight: 1.2,
4298
- letterSpacing: -1.5,
4299
- textTransform: "none"
4300
- },
4301
- fontPostScriptName: "Inter-Bold"
4302
- },
4303
- {
4304
- name: "heading-5xl",
4305
- className: "typography-heading-5xl",
4306
- style: {
4307
- fontFamily: "Inter",
4308
- fontSize: "76px",
4309
- fontWeight: 700,
4310
- fontStyle: "normal",
4311
- lineHeight: 1.2,
4312
- letterSpacing: -1.98,
4313
- textTransform: "none"
4314
- },
4315
- fontPostScriptName: "Inter-Bold"
4316
- }
4317
- ]
4318
- },
4319
- elevations: {
4320
- "24dp": "0px 24px 48px rgba(90, 91, 106, 0.08), 0px 12px 24px rgba(58, 58, 68, 0.08)",
4321
- "16dp": "0px 16px 32px rgba(90, 91, 106, 0.12), 0px 8px 16px rgba(58, 58, 68, 0.12)",
4322
- "8dp": "0px 8px 16px rgba(90, 91, 106, 0.16), 0px 4px 8px rgba(58, 58, 68, 0.16)",
4323
- "4dp": "0px 4px 8px rgba(90, 91, 106, 0.20), 0px 2px 4px rgba(58, 58, 68, 0.20)",
4324
- "2dp": "0px 2px 4px rgba(90, 91, 106, 0.24), 0px 1px 2px rgba(58, 58, 68, 0.24)"
4325
- },
4326
- spacing: {
4327
- layout01: {
4328
- px: 16,
4329
- rem: 1
4330
- },
4331
- layout02: {
4332
- px: 24,
4333
- rem: 1.5
4334
- },
4335
- layout03: {
4336
- px: 32,
4337
- rem: 2
4338
- },
4339
- layout04: {
4340
- px: 48,
4341
- rem: 3
4342
- },
4343
- layout05: {
4344
- px: 64,
4345
- rem: 4
4346
- },
4347
- layout06: {
4348
- px: 96,
4349
- rem: 6
4350
- },
4351
- layout07: {
4352
- px: 160,
4353
- rem: 10
4354
- },
4355
- spacing01: {
4356
- px: 2,
4357
- rem: 0.125
4358
- },
4359
- spacing02: {
4360
- px: 4,
4361
- rem: 0.25
4362
- },
4363
- spacing03: {
4364
- px: 8,
4365
- rem: 0.5
4366
- },
4367
- spacing04: {
4368
- px: 12,
4369
- rem: 0.75
4370
- },
4371
- spacing05: {
4372
- px: 16,
4373
- rem: 1
4374
- },
4375
- spacing06: {
4376
- px: 24,
4377
- rem: 1.5
4378
- },
4379
- spacing07: {
4380
- px: 32,
4381
- rem: 2
4382
- },
4383
- spacing08: {
4384
- px: 40,
4385
- rem: 2.5
4386
- },
4387
- spacing09: {
4388
- px: 48,
4389
- rem: 3
4390
- }
4391
- }
4392
- },
4393
3833
  aiven: {
4394
3834
  colors: {
4395
3835
  "error-100": "#aa0000",
@@ -7040,7 +6480,6 @@ import React23 from "react";
7040
6480
 
7041
6481
  // src/molecules/Badge/Badge.tsx
7042
6482
  import React21 from "react";
7043
- import omit from "lodash/omit";
7044
6483
 
7045
6484
  // src/molecules/Skeleton/Skeleton.tsx
7046
6485
  import React20 from "react";
@@ -7075,14 +6514,11 @@ var Skeleton = ({
7075
6514
  };
7076
6515
 
7077
6516
  // src/molecules/Badge/Badge.tsx
7078
- var isChipBadgeProps = (props) => "dense" in props;
7079
6517
  var createBadge = (type, displayName) => {
7080
6518
  const Component = (props) => {
7081
- var _b;
7082
- const _a = props, { kind = "filled", value, textClassname } = _a, rest = __objRest(_a, ["kind", "value", "textClassname"]);
6519
+ const _a = props, { kind = "filled", value, textClassname, dense = false } = _a, rest = __objRest(_a, ["kind", "value", "textClassname", "dense"]);
7083
6520
  const valueStr = value.toString();
7084
- const dense = isChipBadgeProps(props) ? (_b = props.dense) != null ? _b : false : false;
7085
- return /* @__PURE__ */ React21.createElement("span", __spreadProps(__spreadValues({}, omit(rest, "dense")), {
6521
+ return /* @__PURE__ */ React21.createElement("span", __spreadProps(__spreadValues({}, rest), {
7086
6522
  className: classNames(
7087
6523
  tw("inline-block text-center", {
7088
6524
  "rounded-full": type === "default" || type === "chip",
@@ -7129,9 +6565,19 @@ var NotificationBadge = ({
7129
6565
  className: tw("absolute rounded-full w-[6px] h-[6px] bg-error-70")
7130
6566
  }));
7131
6567
  };
6568
+ var DotBadge = ({ dense = false }) => {
6569
+ return /* @__PURE__ */ React21.createElement("span", {
6570
+ className: tw("rounded-full bg-current", {
6571
+ "w-[6px] h-[6px]": dense,
6572
+ "w-[9px] h-[9px]": !dense
6573
+ })
6574
+ });
6575
+ };
7132
6576
  var Badge = createBadge("default", "Badge");
7133
6577
  Badge.Notification = NotificationBadge;
7134
6578
  Badge.Notification.displayName = "Badge.Notification";
6579
+ Badge.Dot = DotBadge;
6580
+ Badge.Dot.displayName = "Badge.Dot";
7135
6581
  var TabBadge = createBadge("tab", "TabBadge");
7136
6582
  var ChipBadge = createBadge("chip", "ChipBadge");
7137
6583
 
@@ -7455,6 +6901,7 @@ var GridComponent = Tailwindify(
7455
6901
  }
7456
6902
  );
7457
6903
  Grid.Item = GridItem;
6904
+ Grid.Item.displayName = "Grid.Item";
7458
6905
 
7459
6906
  // src/atoms/InputGroup/InputGroup.tsx
7460
6907
  var gridColumnStyles = {
@@ -17,25 +17,25 @@ export interface BadgeProps {
17
17
  * Optional classname for text.
18
18
  */
19
19
  'textClassname'?: string;
20
- }
21
- export declare type ChipBadgeProps = BadgeProps & {
22
20
  /**
23
21
  * If true, display dense version of the badge.
24
22
  */
25
- dense?: boolean;
26
- };
23
+ 'dense'?: boolean;
24
+ }
27
25
  declare const NotificationBadge: React.FC<{
28
26
  top?: React.CSSProperties['top'];
29
27
  right?: React.CSSProperties['right'];
30
28
  }>;
29
+ declare const DotBadge: React.FC<Pick<BadgeProps, 'dense'>>;
31
30
  export declare const Badge: React.FC<BadgeProps> & {
32
31
  Skeleton: React.FC;
33
32
  Notification: typeof NotificationBadge;
33
+ Dot: typeof DotBadge;
34
34
  };
35
35
  export declare const TabBadge: React.FC<BadgeProps> & {
36
36
  Skeleton: React.FC;
37
37
  };
38
- export declare const ChipBadge: React.FC<ChipBadgeProps> & {
38
+ export declare const ChipBadge: React.FC<BadgeProps> & {
39
39
  Skeleton: React.FC;
40
40
  };
41
41
  export {};