@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/system.mjs CHANGED
@@ -79,566 +79,6 @@ var require_tokens = __commonJS({
79
79
  "tokens.json"(exports, module) {
80
80
  module.exports = {
81
81
  themes: {
82
- timescale: {
83
- colors: {
84
- "error-100": "#aa0000",
85
- "error-90": "#b90000",
86
- "error-80": "#c50001",
87
- "error-70": "#d80005",
88
- "error-60": "#e70000",
89
- "error-50": "#e62728",
90
- "error-40": "#e0504f",
91
- "error-30": "#ed7975",
92
- "error-20": "#ffadb3",
93
- "error-10": "#ffcbd2",
94
- "error-5": "#fee8e7",
95
- "error-0": "#fef2f1",
96
- "warning-100": "#fe6d00",
97
- "warning-90": "#ff9003",
98
- "warning-80": "#fd9f00",
99
- "warning-70": "#ffb300",
100
- "warning-60": "#ffc107",
101
- "warning-50": "#fdc926",
102
- "warning-40": "#fdd44d",
103
- "warning-30": "#fddf81",
104
- "warning-20": "#feebb2",
105
- "warning-10": "#fff2cd",
106
- "warning-5": "#fff8ea",
107
- "warning-0": "#fffdf9",
108
- "success-100": "#006f00",
109
- "success-90": "#008e00",
110
- "success-80": "#009f00",
111
- "success-70": "#00b300",
112
- "success-60": "#00c300",
113
- "success-50": "#40ce37",
114
- "success-40": "#60db57",
115
- "success-30": "#89eb80",
116
- "success-20": "#afffa7",
117
- "success-10": "#cbffc9",
118
- "success-5": "#ecf7ed",
119
- "success-0": "#f5faf5",
120
- "info-100": "#02569a",
121
- "info-90": "#0174ba",
122
- "info-80": "#0788d1",
123
- "info-70": "#0399e3",
124
- "info-60": "#02a8f3",
125
- "info-50": "#28b4f4",
126
- "info-40": "#4cc2f7",
127
- "info-30": "#7fd1f7",
128
- "info-20": "#b4e5fb",
129
- "info-10": "#e0f5fe",
130
- "info-5": "#effaff",
131
- "info-0": "#f9fdff",
132
- "grey-100": "#19191d",
133
- "grey-90": "#292a31",
134
- "grey-80": "#3a3a44",
135
- "grey-70": "#4a4b57",
136
- "grey-60": "#5a5b6a",
137
- "grey-50": "#787885",
138
- "grey-40": "#9696a0",
139
- "grey-30": "#b4b4bb",
140
- "grey-20": "#d2d2d6",
141
- "grey-10": "#e1e1e3",
142
- "grey-5": "#ededf0",
143
- "grey-0": "#f7f7fa",
144
- "secondary-100": "#e11d16",
145
- "secondary-90": "#eb4610",
146
- "secondary-80": "#f3580d",
147
- "secondary-70": "#f96a02",
148
- "secondary-60": "#ff7700",
149
- "secondary-50": "#fc871a",
150
- "secondary-40": "#fb9a3e",
151
- "secondary-30": "#fab26e",
152
- "secondary-20": "#f8c99c",
153
- "secondary-10": "#fee8d0",
154
- "secondary-5": "#fff3e8",
155
- "secondary-0": "#fffbf8",
156
- "primary-100": "#02569a",
157
- "primary-90": "#0174ba",
158
- "primary-80": "#0788d1",
159
- "primary-70": "#0399e3",
160
- "primary-60": "#02a8f3",
161
- "primary-50": "#28b4f4",
162
- "primary-40": "#4cc2f7",
163
- "primary-30": "#7fd1f7",
164
- "primary-20": "#b4e5fb",
165
- "primary-10": "#e0f5fe",
166
- "primary-5": "#effaff",
167
- "primary-0": "#f9fdff"
168
- },
169
- typography: {
170
- sizes: [
171
- {
172
- name: "large-heading",
173
- className: "typography-large-heading",
174
- style: {
175
- fontFamily: "Inter",
176
- fontSize: "32px",
177
- fontWeight: 700,
178
- fontStyle: "normal",
179
- lineHeight: 1.375,
180
- textTransform: "none"
181
- },
182
- fontPostScriptName: "Inter-Bold"
183
- },
184
- {
185
- name: "heading",
186
- className: "typography-heading",
187
- style: {
188
- fontFamily: "Inter",
189
- fontSize: "24px",
190
- fontWeight: 700,
191
- fontStyle: "normal",
192
- lineHeight: 1.375,
193
- textTransform: "none"
194
- },
195
- fontPostScriptName: "Inter-Bold"
196
- },
197
- {
198
- name: "subheading",
199
- className: "typography-subheading",
200
- style: {
201
- fontFamily: "Inter",
202
- fontSize: "20px",
203
- fontWeight: 600,
204
- fontStyle: "normal",
205
- lineHeight: 1.375,
206
- textTransform: "none"
207
- },
208
- fontPostScriptName: "Inter-Bold"
209
- },
210
- {
211
- name: "large-strong",
212
- className: "typography-large-strong",
213
- style: {
214
- fontFamily: "Inter",
215
- fontSize: "20px",
216
- fontWeight: 600,
217
- fontStyle: "normal",
218
- lineHeight: 1.58,
219
- textTransform: "none"
220
- },
221
- fontPostScriptName: "Inter-SemiBold"
222
- },
223
- {
224
- name: "large",
225
- className: "typography-large",
226
- style: {
227
- fontFamily: "Inter",
228
- fontSize: "20px",
229
- fontWeight: 500,
230
- fontStyle: "normal",
231
- lineHeight: 1.58,
232
- textTransform: "none"
233
- },
234
- fontPostScriptName: "Inter-SemiBold"
235
- },
236
- {
237
- name: "default-strong",
238
- className: "typography-default-strong",
239
- style: {
240
- fontFamily: "Inter",
241
- fontSize: "16px",
242
- fontWeight: 500,
243
- fontStyle: "normal",
244
- lineHeight: 1.5,
245
- textTransform: "none"
246
- },
247
- fontPostScriptName: "Inter-SemiBold"
248
- },
249
- {
250
- name: "default",
251
- className: "typography-default",
252
- style: {
253
- fontFamily: "Inter",
254
- fontSize: "16px",
255
- fontWeight: 400,
256
- fontStyle: "normal",
257
- lineHeight: 1.5,
258
- textTransform: "none"
259
- },
260
- fontPostScriptName: null
261
- },
262
- {
263
- name: "small-strong",
264
- className: "typography-small-strong",
265
- style: {
266
- fontFamily: "Inter",
267
- fontSize: "14px",
268
- fontWeight: 500,
269
- fontStyle: "normal",
270
- lineHeight: 1.42,
271
- textTransform: "none"
272
- },
273
- fontPostScriptName: "Inter-SemiBold"
274
- },
275
- {
276
- name: "small",
277
- className: "typography-small",
278
- style: {
279
- fontFamily: "Inter",
280
- fontSize: "14px",
281
- fontWeight: 400,
282
- fontStyle: "normal",
283
- lineHeight: 1.42,
284
- textTransform: "none"
285
- },
286
- fontPostScriptName: null
287
- },
288
- {
289
- name: "caption",
290
- className: "typography-caption",
291
- style: {
292
- fontFamily: "Inter",
293
- fontSize: "12px",
294
- fontWeight: 400,
295
- fontStyle: "normal",
296
- lineHeight: 1.26,
297
- textTransform: "none"
298
- },
299
- fontPostScriptName: null
300
- },
301
- {
302
- name: "caption-small",
303
- className: "typography-caption-small",
304
- style: {
305
- fontFamily: "Inter",
306
- fontSize: "10px",
307
- fontWeight: 400,
308
- fontStyle: "normal",
309
- lineHeight: 1.2,
310
- textTransform: "none"
311
- },
312
- fontPostScriptName: null
313
- },
314
- {
315
- name: "caption-default",
316
- className: "typography-caption-default",
317
- style: {
318
- fontFamily: "Inter",
319
- fontSize: "12px",
320
- fontWeight: 400,
321
- fontStyle: "normal",
322
- lineHeight: 1.26,
323
- letterSpacing: 0,
324
- textTransform: "none"
325
- },
326
- fontPostScriptName: null
327
- },
328
- {
329
- name: "overline-small",
330
- className: "typography-overline-small",
331
- style: {
332
- fontFamily: "Inter",
333
- fontSize: "10px",
334
- fontWeight: 400,
335
- fontStyle: "normal",
336
- lineHeight: 1,
337
- letterSpacing: 0,
338
- textTransform: "uppercase"
339
- },
340
- fontPostScriptName: null
341
- },
342
- {
343
- name: "overline-default",
344
- className: "typography-overline-default",
345
- style: {
346
- fontFamily: "Inter",
347
- fontSize: "12px",
348
- fontWeight: 400,
349
- fontStyle: "normal",
350
- lineHeight: 1,
351
- letterSpacing: 0,
352
- textTransform: "uppercase"
353
- },
354
- fontPostScriptName: null
355
- },
356
- {
357
- name: "button-small",
358
- className: "typography-button-small",
359
- style: {
360
- fontFamily: "Inter",
361
- fontSize: "12px",
362
- fontWeight: 500,
363
- fontStyle: "normal",
364
- lineHeight: 1,
365
- letterSpacing: 0,
366
- textTransform: "none"
367
- },
368
- fontPostScriptName: "Inter-Medium"
369
- },
370
- {
371
- name: "button-medium",
372
- className: "typography-button-medium",
373
- style: {
374
- fontFamily: "Inter",
375
- fontSize: "14px",
376
- fontWeight: 400,
377
- fontStyle: "normal",
378
- lineHeight: 1,
379
- letterSpacing: 0,
380
- textTransform: "none"
381
- },
382
- fontPostScriptName: "Inter-SemiBold"
383
- },
384
- {
385
- name: "button-large",
386
- className: "typography-button-large",
387
- style: {
388
- fontFamily: "Inter",
389
- fontSize: "16px",
390
- fontWeight: 500,
391
- fontStyle: "normal",
392
- lineHeight: 1.5,
393
- letterSpacing: 0,
394
- textTransform: "none"
395
- },
396
- fontPostScriptName: "Inter-Medium"
397
- },
398
- {
399
- name: "body-small",
400
- className: "typography-body-small",
401
- style: {
402
- fontFamily: "Inter",
403
- fontSize: "14px",
404
- fontWeight: 400,
405
- fontStyle: "normal",
406
- lineHeight: 1.43,
407
- letterSpacing: 0,
408
- textTransform: "none"
409
- },
410
- fontPostScriptName: null
411
- },
412
- {
413
- name: "body-small-medium",
414
- className: "typography-body-small-medium",
415
- style: {
416
- fontFamily: "Inter",
417
- fontSize: "14px",
418
- fontWeight: 500,
419
- fontStyle: "normal",
420
- lineHeight: 1.43,
421
- letterSpacing: 0,
422
- textTransform: "none"
423
- },
424
- fontPostScriptName: "Inter-SemiBold"
425
- },
426
- {
427
- name: "body-default",
428
- className: "typography-body-default",
429
- style: {
430
- fontFamily: "Inter",
431
- fontSize: "16px",
432
- fontWeight: 400,
433
- fontStyle: "normal",
434
- lineHeight: 1.5,
435
- letterSpacing: 0,
436
- textTransform: "none"
437
- },
438
- fontPostScriptName: null
439
- },
440
- {
441
- name: "body-default-medium",
442
- className: "typography-body-default-medium",
443
- style: {
444
- fontFamily: "Inter",
445
- fontSize: "16px",
446
- fontWeight: 500,
447
- fontStyle: "normal",
448
- lineHeight: 1.5,
449
- letterSpacing: 0,
450
- textTransform: "none"
451
- },
452
- fontPostScriptName: "Inter-SemiBold"
453
- },
454
- {
455
- name: "body-large",
456
- className: "typography-body-large",
457
- style: {
458
- fontFamily: "Inter",
459
- fontSize: "20px",
460
- fontWeight: 400,
461
- fontStyle: "normal",
462
- lineHeight: 1.58,
463
- letterSpacing: 0,
464
- textTransform: "none"
465
- },
466
- fontPostScriptName: null
467
- },
468
- {
469
- name: "body-large-medium",
470
- className: "typography-body-large-medium",
471
- style: {
472
- fontFamily: "Inter",
473
- fontSize: "20px",
474
- fontWeight: 400,
475
- fontStyle: "normal",
476
- lineHeight: 1.2,
477
- letterSpacing: 0,
478
- textTransform: "none"
479
- },
480
- fontPostScriptName: "Inter-SemiBold"
481
- },
482
- {
483
- name: "heading-large",
484
- className: "typography-heading-large",
485
- style: {
486
- fontFamily: "Inter",
487
- fontSize: "20px",
488
- fontWeight: 700,
489
- fontStyle: "normal",
490
- lineHeight: 1.5,
491
- letterSpacing: 0.15,
492
- textTransform: "none"
493
- },
494
- fontPostScriptName: "Inter-Bold"
495
- },
496
- {
497
- name: "heading-xl",
498
- className: "typography-heading-xl",
499
- style: {
500
- fontFamily: "Inter",
501
- fontSize: "24px",
502
- fontWeight: 700,
503
- fontStyle: "normal",
504
- lineHeight: 1.5,
505
- letterSpacing: 0,
506
- textTransform: "none"
507
- },
508
- fontPostScriptName: "Inter-Bold"
509
- },
510
- {
511
- name: "heading-2xl",
512
- className: "typography-heading-2xl",
513
- style: {
514
- fontFamily: "Inter",
515
- fontSize: "34px",
516
- fontWeight: 700,
517
- fontStyle: "normal",
518
- lineHeight: 1.28,
519
- letterSpacing: 0,
520
- textTransform: "none"
521
- },
522
- fontPostScriptName: "Inter-Bold"
523
- },
524
- {
525
- name: "heading-3xl",
526
- className: "typography-heading-3xl",
527
- style: {
528
- fontFamily: "Inter",
529
- fontSize: "48px",
530
- fontWeight: 700,
531
- fontStyle: "normal",
532
- lineHeight: 1.24,
533
- letterSpacing: -0.48,
534
- textTransform: "none"
535
- },
536
- fontPostScriptName: "Inter-Bold"
537
- },
538
- {
539
- name: "heading-4xl",
540
- className: "typography-heading-4xl",
541
- style: {
542
- fontFamily: "Inter",
543
- fontSize: "60px",
544
- fontWeight: 700,
545
- fontStyle: "normal",
546
- lineHeight: 1.2,
547
- letterSpacing: -1.5,
548
- textTransform: "none"
549
- },
550
- fontPostScriptName: "Inter-Bold"
551
- },
552
- {
553
- name: "heading-5xl",
554
- className: "typography-heading-5xl",
555
- style: {
556
- fontFamily: "Inter",
557
- fontSize: "76px",
558
- fontWeight: 700,
559
- fontStyle: "normal",
560
- lineHeight: 1.2,
561
- letterSpacing: -1.98,
562
- textTransform: "none"
563
- },
564
- fontPostScriptName: "Inter-Bold"
565
- }
566
- ]
567
- },
568
- elevations: {
569
- "24dp": "0px 24px 48px rgba(90, 91, 106, 0.08), 0px 12px 24px rgba(58, 58, 68, 0.08)",
570
- "16dp": "0px 16px 32px rgba(90, 91, 106, 0.12), 0px 8px 16px rgba(58, 58, 68, 0.12)",
571
- "8dp": "0px 8px 16px rgba(90, 91, 106, 0.16), 0px 4px 8px rgba(58, 58, 68, 0.16)",
572
- "4dp": "0px 4px 8px rgba(90, 91, 106, 0.20), 0px 2px 4px rgba(58, 58, 68, 0.20)",
573
- "2dp": "0px 2px 4px rgba(90, 91, 106, 0.24), 0px 1px 2px rgba(58, 58, 68, 0.24)"
574
- },
575
- spacing: {
576
- layout01: {
577
- px: 16,
578
- rem: 1
579
- },
580
- layout02: {
581
- px: 24,
582
- rem: 1.5
583
- },
584
- layout03: {
585
- px: 32,
586
- rem: 2
587
- },
588
- layout04: {
589
- px: 48,
590
- rem: 3
591
- },
592
- layout05: {
593
- px: 64,
594
- rem: 4
595
- },
596
- layout06: {
597
- px: 96,
598
- rem: 6
599
- },
600
- layout07: {
601
- px: 160,
602
- rem: 10
603
- },
604
- spacing01: {
605
- px: 2,
606
- rem: 0.125
607
- },
608
- spacing02: {
609
- px: 4,
610
- rem: 0.25
611
- },
612
- spacing03: {
613
- px: 8,
614
- rem: 0.5
615
- },
616
- spacing04: {
617
- px: 12,
618
- rem: 0.75
619
- },
620
- spacing05: {
621
- px: 16,
622
- rem: 1
623
- },
624
- spacing06: {
625
- px: 24,
626
- rem: 1.5
627
- },
628
- spacing07: {
629
- px: 32,
630
- rem: 2
631
- },
632
- spacing08: {
633
- px: 40,
634
- rem: 2.5
635
- },
636
- spacing09: {
637
- px: 48,
638
- rem: 3
639
- }
640
- }
641
- },
642
82
  aiven: {
643
83
  colors: {
644
84
  "error-100": "#aa0000",
@@ -5117,7 +4557,8 @@ __export(molecules_exports, {
5117
4557
  useScrollTarget: () => useScrollTarget,
5118
4558
  useTableSelect: () => useTableSelect,
5119
4559
  useTableSort: () => useTableSort,
5120
- useToast: () => useToast
4560
+ useToast: () => useToast,
4561
+ useToastContext: () => useToastContext
5121
4562
  });
5122
4563
 
5123
4564
  // src/atoms/Select/Select.tsx
@@ -6476,15 +5917,25 @@ var Timer = ({ children, duration }) => {
6476
5917
 
6477
5918
  // src/molecules/Toast/Toast.tsx
6478
5919
  var ToastContext = createContext(null);
6479
- var useToastContext = () => {
5920
+ var useToastRootContext = () => {
6480
5921
  const context2 = useContext(ToastContext);
6481
5922
  if (context2 === null) {
6482
5923
  throw new Error("ToastContext was used outside of provider.");
6483
5924
  }
6484
5925
  return context2;
6485
5926
  };
5927
+ var useToastContext = () => {
5928
+ const [_, dispatch] = useToastRootContext();
5929
+ const toast = (toast2) => {
5930
+ dispatch({ type: 0 /* Toast */, toast: toast2 });
5931
+ };
5932
+ const dismiss = (toastId) => {
5933
+ dispatch({ type: 1 /* Dismiss */, toastId });
5934
+ };
5935
+ return [toast, dismiss];
5936
+ };
6486
5937
  var useToast = () => {
6487
- const [_, dispatch] = useToastContext();
5938
+ const [_, dispatch] = useToastRootContext();
6488
5939
  return (toast) => {
6489
5940
  dispatch({ type: 0 /* Toast */, toast });
6490
5941
  };
@@ -6500,8 +5951,13 @@ var toToast = (_a) => {
6500
5951
  };
6501
5952
  var reducer = (state, action) => {
6502
5953
  switch (action.type) {
6503
- case 0 /* Toast */:
6504
- return __spreadProps(__spreadValues({}, state), { toasts: [...state.toasts, toToast(action.toast)] });
5954
+ case 0 /* Toast */: {
5955
+ const newToast = toToast(action.toast);
5956
+ if (state.toasts.some((toast) => toast.id === newToast.id)) {
5957
+ return __spreadValues({}, state);
5958
+ }
5959
+ return __spreadProps(__spreadValues({}, state), { toasts: [...state.toasts, newToast] });
5960
+ }
6505
5961
  case 1 /* Dismiss */:
6506
5962
  return __spreadProps(__spreadValues({}, state), {
6507
5963
  toasts: state.toasts.filter((toast) => toast.id !== action.toastId)
@@ -6548,7 +6004,7 @@ var ToastComponent = ({ toast, onDismiss }) => {
6548
6004
  }, content);
6549
6005
  };
6550
6006
  var ToastConsumer = () => {
6551
- const [state, dispatch] = useToastContext();
6007
+ const [state, dispatch] = useToastRootContext();
6552
6008
  const toastsByPosition = groupBy(state.toasts, "position");
6553
6009
  const positions = Object.keys(toastsByPosition);
6554
6010
  const onDismiss = (toastId) => {
@@ -7487,15 +6943,11 @@ Avatar.Skeleton.displayName = "Avatar.Skeleton";
7487
6943
 
7488
6944
  // src/molecules/Badge/Badge.tsx
7489
6945
  import React21 from "react";
7490
- import omit2 from "lodash/omit";
7491
- var isChipBadgeProps = (props) => "dense" in props;
7492
6946
  var createBadge = (type, displayName) => {
7493
6947
  const Component = (props) => {
7494
- var _b;
7495
- const _a = props, { kind = "filled", value, textClassname } = _a, rest = __objRest(_a, ["kind", "value", "textClassname"]);
6948
+ const _a = props, { kind = "filled", value, textClassname, dense = false } = _a, rest = __objRest(_a, ["kind", "value", "textClassname", "dense"]);
7496
6949
  const valueStr = value.toString();
7497
- const dense = isChipBadgeProps(props) ? (_b = props.dense) != null ? _b : false : false;
7498
- return /* @__PURE__ */ React21.createElement("span", __spreadProps(__spreadValues({}, omit2(rest, "dense")), {
6950
+ return /* @__PURE__ */ React21.createElement("span", __spreadProps(__spreadValues({}, rest), {
7499
6951
  className: classNames(
7500
6952
  tw("inline-block text-center", {
7501
6953
  "rounded-full": type === "default" || type === "chip",
@@ -7542,15 +6994,25 @@ var NotificationBadge = ({
7542
6994
  className: tw("absolute rounded-full w-[6px] h-[6px] bg-error-70")
7543
6995
  }));
7544
6996
  };
6997
+ var DotBadge = ({ dense = false }) => {
6998
+ return /* @__PURE__ */ React21.createElement("span", {
6999
+ className: tw("rounded-full bg-current", {
7000
+ "w-[6px] h-[6px]": dense,
7001
+ "w-[9px] h-[9px]": !dense
7002
+ })
7003
+ });
7004
+ };
7545
7005
  var Badge = createBadge("default", "Badge");
7546
7006
  Badge.Notification = NotificationBadge;
7547
7007
  Badge.Notification.displayName = "Badge.Notification";
7008
+ Badge.Dot = DotBadge;
7009
+ Badge.Dot.displayName = "Badge.Dot";
7548
7010
  var TabBadge = createBadge("tab", "TabBadge");
7549
7011
  var ChipBadge = createBadge("chip", "ChipBadge");
7550
7012
 
7551
7013
  // src/molecules/Banner/Banner.tsx
7552
7014
  import React23 from "react";
7553
- import omit3 from "lodash/omit";
7015
+ import omit2 from "lodash/omit";
7554
7016
 
7555
7017
  // src/atoms/Banner/Banner.tsx
7556
7018
  import React22 from "react";
@@ -7663,10 +7125,10 @@ var createBanner = (displayName, opts = {}) => {
7663
7125
  layout
7664
7126
  }, !isLink(action) && /* @__PURE__ */ React23.createElement(Button.Ghost, __spreadValues({
7665
7127
  dense: true
7666
- }, omit3(action, "text")), action.text), isLink(action) && /* @__PURE__ */ React23.createElement(Button.ExternalLink, __spreadValues({
7128
+ }, omit2(action, "text")), action.text), isLink(action) && /* @__PURE__ */ React23.createElement(Button.ExternalLink, __spreadValues({
7667
7129
  dense: true,
7668
7130
  kind: "ghost"
7669
- }, omit3(action, "text")), action.text))), (props.layout === "vertical" || props.layout === void 0) && props.image !== void 0 && /* @__PURE__ */ React23.createElement(Banner.ImageContainer, null, props.image ? /* @__PURE__ */ React23.createElement("img", {
7131
+ }, omit2(action, "text")), action.text))), (props.layout === "vertical" || props.layout === void 0) && props.image !== void 0 && /* @__PURE__ */ React23.createElement(Banner.ImageContainer, null, props.image ? /* @__PURE__ */ React23.createElement("img", {
7670
7132
  src: props.image,
7671
7133
  alt: props.imageAlt,
7672
7134
  className: tw("bg-cover object-cover", { "w-full": !props.imageWidth }),
@@ -7747,7 +7209,7 @@ Breadcrumbs.Crumb = Crumb;
7747
7209
  // src/molecules/Card/Card.tsx
7748
7210
  import React31, { useRef as useRef3 } from "react";
7749
7211
  import { useButton as useButton2 } from "@react-aria/button";
7750
- import omit5 from "lodash/omit";
7212
+ import omit4 from "lodash/omit";
7751
7213
 
7752
7214
  // src/molecules/Chip/Chip.tsx
7753
7215
  import React26 from "react";
@@ -7846,7 +7308,8 @@ Chip2.Skeleton = ChipSkeleton;
7846
7308
  Chip2.Skeleton.displayName = "Chip.Skeleton";
7847
7309
  var StatusChip = React26.forwardRef(
7848
7310
  (_a, ref) => {
7849
- var _b = _a, { UNSAFE_icon: icon, text, dense = false, status } = _b, rest = __objRest(_b, ["UNSAFE_icon", "text", "dense", "status"]);
7311
+ var _b = _a, { icon: chipIcon, UNSAFE_icon, text, dense = false, status, badge } = _b, rest = __objRest(_b, ["icon", "UNSAFE_icon", "text", "dense", "status", "badge"]);
7312
+ const icon = chipIcon || UNSAFE_icon;
7850
7313
  return /* @__PURE__ */ React26.createElement(Chip.Container, __spreadProps(__spreadValues({
7851
7314
  ref,
7852
7315
  role: "status",
@@ -7854,9 +7317,14 @@ var StatusChip = React26.forwardRef(
7854
7317
  dense
7855
7318
  }, rest), {
7856
7319
  className: getStatusClassNames(status)
7320
+ }), badge === true && /* @__PURE__ */ React26.createElement(Badge.Dot, {
7321
+ dense
7857
7322
  }), icon && /* @__PURE__ */ React26.createElement(InlineIcon, {
7858
7323
  icon
7859
- }), text);
7324
+ }), text, badge && typeof badge === "number" && /* @__PURE__ */ React26.createElement(Badge, {
7325
+ dense,
7326
+ value: badge
7327
+ }));
7860
7328
  }
7861
7329
  );
7862
7330
  var ChipContainer = ({ dense, children }) => /* @__PURE__ */ React26.createElement("div", {
@@ -8070,7 +7538,7 @@ var LineClamp = React29.forwardRef(
8070
7538
  // src/molecules/Card/Compact.tsx
8071
7539
  import React30, { useRef as useRef2 } from "react";
8072
7540
  import { useButton } from "@react-aria/button";
8073
- import { omit as omit4 } from "lodash";
7541
+ import { omit as omit3 } from "lodash";
8074
7542
  var CompactCard = ({
8075
7543
  title,
8076
7544
  clampTitle,
@@ -8120,10 +7588,10 @@ var CompactCard = ({
8120
7588
  dense: true
8121
7589
  }, action && /* @__PURE__ */ React30.createElement(Button.Secondary, __spreadValues({
8122
7590
  dense: true
8123
- }, omit4(action, "text")), action.text), link && /* @__PURE__ */ React30.createElement(Button.ExternalLink, __spreadValues({
7591
+ }, omit3(action, "text")), action.text), link && /* @__PURE__ */ React30.createElement(Button.ExternalLink, __spreadValues({
8124
7592
  dense: true,
8125
7593
  kind: "ghost"
8126
- }, omit4(link, "text")), link.text)));
7594
+ }, omit3(link, "text")), link.text)));
8127
7595
  };
8128
7596
  var CompactSkeleton = ({
8129
7597
  chips = true,
@@ -8215,10 +7683,10 @@ var Card2 = ({
8215
7683
  color: "grey-70"
8216
7684
  }, children || description)), (action || link) && /* @__PURE__ */ React31.createElement(Card.Actions, null, action && /* @__PURE__ */ React31.createElement(Button.Secondary, __spreadValues({
8217
7685
  dense: true
8218
- }, omit5(action, "text")), action.text), link && /* @__PURE__ */ React31.createElement(Button.ExternalLink, __spreadValues({
7686
+ }, omit4(action, "text")), action.text), link && /* @__PURE__ */ React31.createElement(Button.ExternalLink, __spreadValues({
8219
7687
  dense: true,
8220
7688
  kind: "ghost"
8221
- }, omit5(link, "text")), link.text)));
7689
+ }, omit4(link, "text")), link.text)));
8222
7690
  };
8223
7691
  var CardSkeleton = ({
8224
7692
  chips = true,
@@ -8661,6 +8129,7 @@ var GridComponent = Tailwindify(
8661
8129
  }
8662
8130
  );
8663
8131
  Grid.Item = GridItem;
8132
+ Grid.Item.displayName = "Grid.Item";
8664
8133
 
8665
8134
  // src/atoms/InputGroup/InputGroup.tsx
8666
8135
  var gridColumnStyles = {
@@ -8992,7 +8461,7 @@ var ChoiceChip = (_a) => {
8992
8461
  import React46, { useEffect as useEffect6, useRef as useRef5, useState as useState5 } from "react";
8993
8462
  import { ariaHideOutside } from "@react-aria/overlays";
8994
8463
  import { useCombobox } from "downshift";
8995
- import omit6 from "lodash/omit";
8464
+ import omit5 from "lodash/omit";
8996
8465
  import uniqueId2 from "lodash/uniqueId";
8997
8466
  import { matchSorter } from "match-sorter";
8998
8467
 
@@ -9163,9 +8632,11 @@ var ComboboxBase = (_a) => {
9163
8632
  stateReducer: (_, actionChanges) => {
9164
8633
  const { changes, type } = actionChanges;
9165
8634
  switch (type) {
8635
+ case useCombobox.stateChangeTypes.InputKeyDownEnter:
9166
8636
  case useCombobox.stateChangeTypes.InputBlur: {
8637
+ const selectedItem2 = createOption ? createOption == null ? void 0 : createOption(changes.inputValue) : changes.selectedItem;
9167
8638
  return __spreadProps(__spreadValues({}, changes), {
9168
- selectedItem: createOption ? createOption == null ? void 0 : createOption(changes.inputValue) : changes.selectedItem
8639
+ selectedItem: selectedItem2
9169
8640
  });
9170
8641
  }
9171
8642
  }
@@ -9259,7 +8730,7 @@ var Combobox = (_a) => {
9259
8730
  const errorMessageId = uniqueId2();
9260
8731
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
9261
8732
  const labelControlProps = getLabelControlProps(props);
9262
- const baseProps = omit6(props, Object.keys(labelControlProps));
8733
+ const baseProps = omit5(props, Object.keys(labelControlProps));
9263
8734
  return /* @__PURE__ */ React46.createElement(LabelControl, __spreadProps(__spreadValues({
9264
8735
  id: `${id.current}-label`,
9265
8736
  htmlFor: `${id.current}-input`,
@@ -9312,7 +8783,7 @@ import { useTreeState } from "@react-stately/tree";
9312
8783
 
9313
8784
  // src/molecules/Input/Input.tsx
9314
8785
  import React49, { forwardRef, useImperativeHandle, useRef as useRef6, useState as useState6 } from "react";
9315
- import omit7 from "lodash/omit";
8786
+ import omit6 from "lodash/omit";
9316
8787
  import toString from "lodash/toString";
9317
8788
  import uniqueId3 from "lodash/uniqueId";
9318
8789
 
@@ -9404,9 +8875,10 @@ var createInput = (displayName, opts = {}) => {
9404
8875
  getCommonInputStyles({ readOnly, valid }),
9405
8876
  props.className
9406
8877
  )
9407
- })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React49.createElement(InputAdornment, null, /* @__PURE__ */ React49.createElement(ResetIcon, {
8878
+ })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React49.createElement(InputAdornment, null, /* @__PURE__ */ React49.createElement("button", {
8879
+ "aria-label": "reset search",
9408
8880
  onClick: handleReset
9409
- })), !opts.canReset && endAdornment && /* @__PURE__ */ React49.createElement(InputAdornment, null, endAdornment));
8881
+ }, /* @__PURE__ */ React49.createElement(ResetIcon, null))), !opts.canReset && endAdornment && /* @__PURE__ */ React49.createElement(InputAdornment, null, endAdornment));
9410
8882
  }
9411
8883
  );
9412
8884
  InputComponent.displayName = displayName;
@@ -9425,7 +8897,7 @@ var Input2 = React49.forwardRef((_a, ref) => {
9425
8897
  const errorMessageId = uniqueId3();
9426
8898
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
9427
8899
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
9428
- const baseProps = omit7(props, Object.keys(labelControlProps));
8900
+ const baseProps = omit6(props, Object.keys(labelControlProps));
9429
8901
  return /* @__PURE__ */ React49.createElement(LabelControl, __spreadProps(__spreadValues({
9430
8902
  id: `${id.current}-label`,
9431
8903
  htmlFor: id.current,
@@ -9544,12 +9016,13 @@ var filterCollection = (collection, inputValue, filter) => {
9544
9016
  var filterNodes = (nodes, inputValue, filter) => {
9545
9017
  const filteredNode = [];
9546
9018
  for (const node of nodes) {
9019
+ const description = Object.hasOwn(node.props, "description") && typeof node.props.description === "string" ? node.props.description : void 0;
9547
9020
  if (node.type === "section" && node.hasChildNodes) {
9548
9021
  const filtered = filterNodes(node.childNodes, inputValue, filter);
9549
9022
  if ([...filtered].length > 0) {
9550
9023
  filteredNode.push(__spreadProps(__spreadValues({}, node), { childNodes: filtered }));
9551
9024
  }
9552
- } else if (node.type !== "section" && filter(node.textValue, inputValue)) {
9025
+ } else if (node.type !== "section" && (filter(node.textValue, inputValue) || description && filter(description, inputValue))) {
9553
9026
  filteredNode.push(__spreadValues({}, node));
9554
9027
  }
9555
9028
  }
@@ -9663,7 +9136,7 @@ var MenuWrapper = (_a) => {
9663
9136
  const [search, setSearch] = React51.useState("");
9664
9137
  const filteredCollection = React51.useMemo(
9665
9138
  () => searchable ? filterCollection(state.collection, search, contains) : state.collection,
9666
- [state.collection, search, contains]
9139
+ [searchable, state.collection, search, contains]
9667
9140
  );
9668
9141
  return /* @__PURE__ */ React51.createElement(DropdownMenu, {
9669
9142
  minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
@@ -9767,7 +9240,7 @@ import { useSelect } from "downshift";
9767
9240
  import defaults from "lodash/defaults";
9768
9241
  import isArray from "lodash/isArray";
9769
9242
  import isNil from "lodash/isNil";
9770
- import omit8 from "lodash/omit";
9243
+ import omit7 from "lodash/omit";
9771
9244
  import uniqueId4 from "lodash/uniqueId";
9772
9245
  var hasIconProperty = (val) => {
9773
9246
  var _a;
@@ -9965,7 +9438,7 @@ var Select2 = (_a) => {
9965
9438
  const errorMessageId = uniqueId4();
9966
9439
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
9967
9440
  const labelProps = getLabelControlProps(props);
9968
- const baseProps = omit8(props, Object.keys(labelProps));
9441
+ const baseProps = omit7(props, Object.keys(labelProps));
9969
9442
  const legacyError = labelProps.error !== void 0 && labelProps.valid === false;
9970
9443
  const variant = !labelProps.valid || legacyError ? "error" : labelProps.disabled ? "disabled" : "default";
9971
9444
  const label = /* @__PURE__ */ React52.createElement(Label, __spreadValues({
@@ -10735,7 +10208,7 @@ import { useDialog } from "@react-aria/dialog";
10735
10208
  import { Overlay as Overlay2, useModalOverlay } from "@react-aria/overlays";
10736
10209
  import { useId } from "@react-aria/utils";
10737
10210
  import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
10738
- import omit9 from "lodash/omit";
10211
+ import omit8 from "lodash/omit";
10739
10212
 
10740
10213
  // src/atoms/Dialog/Dialog.tsx
10741
10214
  var import_confirm2 = __toESM(require_confirm());
@@ -10906,9 +10379,9 @@ var DialogWrapper = ({
10906
10379
  id: describedBy
10907
10380
  }, /* @__PURE__ */ React66.createElement(Typography2.Default, null, children)), /* @__PURE__ */ React66.createElement(Modal.Footer, null, /* @__PURE__ */ React66.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React66.createElement(Button.Ghost, __spreadValues({
10908
10381
  key: secondaryAction.text
10909
- }, omit9(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React66.createElement(Button.Secondary, __spreadValues({
10382
+ }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React66.createElement(Button.Secondary, __spreadValues({
10910
10383
  key: primaryAction.text
10911
- }, omit9(primaryAction, "text")), primaryAction.text))));
10384
+ }, omit8(primaryAction, "text")), primaryAction.text))));
10912
10385
  };
10913
10386
 
10914
10387
  // src/molecules/Divider/Divider.tsx
@@ -11183,15 +10656,15 @@ import React72 from "react";
11183
10656
 
11184
10657
  // src/utils/actions.tsx
11185
10658
  import React71 from "react";
11186
- import omit10 from "lodash/omit";
10659
+ import omit9 from "lodash/omit";
11187
10660
  var renderAction = (kind = "primary", action) => {
11188
10661
  return isLink(action) ? /* @__PURE__ */ React71.createElement(Button.ExternalLink, __spreadValues({
11189
10662
  key: action.text,
11190
10663
  kind
11191
- }, omit10(action, "text")), action.text) : /* @__PURE__ */ React71.createElement(Button, __spreadValues({
10664
+ }, omit9(action, "text")), action.text) : /* @__PURE__ */ React71.createElement(Button, __spreadValues({
11192
10665
  key: action.text,
11193
10666
  kind
11194
- }, omit10(action, "text")), action.text);
10667
+ }, omit9(action, "text")), action.text);
11195
10668
  };
11196
10669
 
11197
10670
  // src/molecules/EmptyState/EmptyState.tsx
@@ -11437,7 +10910,7 @@ import { Overlay as Overlay3, useModalOverlay as useModalOverlay2 } from "@react
11437
10910
  import { useId as useId2 } from "@react-aria/utils";
11438
10911
  import { useOverlayTriggerState as useOverlayTriggerState4 } from "@react-stately/overlays";
11439
10912
  import castArray from "lodash/castArray";
11440
- import omit11 from "lodash/omit";
10913
+ import omit10 from "lodash/omit";
11441
10914
 
11442
10915
  // src/molecules/Tabs/Tabs.tsx
11443
10916
  import React79, { useEffect as useEffect8, useLayoutEffect as useLayoutEffect2, useRef as useRef9, useState as useState9 } from "react";
@@ -11795,7 +11268,7 @@ var ModalWrapper = React80.forwardRef(
11795
11268
  }, action), text);
11796
11269
  }), primaryAction && /* @__PURE__ */ React80.createElement(Button.Primary, __spreadValues({
11797
11270
  key: primaryAction.text
11798
- }, omit11(primaryAction, "text")), primaryAction.text))));
11271
+ }, omit10(primaryAction, "text")), primaryAction.text))));
11799
11272
  }
11800
11273
  );
11801
11274
  var ModalTabs = createTabsComponent(
@@ -11813,7 +11286,7 @@ var ModalTabs = createTabsComponent(
11813
11286
  import React82, { useEffect as useEffect9, useRef as useRef10, useState as useState10 } from "react";
11814
11287
  import castArray2 from "lodash/castArray";
11815
11288
  import identity from "lodash/identity";
11816
- import omit12 from "lodash/omit";
11289
+ import omit11 from "lodash/omit";
11817
11290
  import uniqueId5 from "lodash/uniqueId";
11818
11291
 
11819
11292
  // src/molecules/MultiInput/InputChip.tsx
@@ -12045,7 +11518,7 @@ var MultiInput = (props) => {
12045
11518
  const errorMessageId = uniqueId5();
12046
11519
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12047
11520
  const labelControlProps = getLabelControlProps(props);
12048
- const baseProps = omit12(props, Object.keys(labelControlProps));
11521
+ const baseProps = omit11(props, Object.keys(labelControlProps));
12049
11522
  return /* @__PURE__ */ React82.createElement(LabelControl, __spreadProps(__spreadValues({
12050
11523
  id: `${id.current}-label`,
12051
11524
  htmlFor: `${id.current}-input`,
@@ -12076,7 +11549,7 @@ import { ariaHideOutside as ariaHideOutside2 } from "@react-aria/overlays";
12076
11549
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
12077
11550
  import isEqual from "lodash/isEqual";
12078
11551
  import isNil2 from "lodash/isNil";
12079
- import omit13 from "lodash/omit";
11552
+ import omit12 from "lodash/omit";
12080
11553
  import omitBy from "lodash/omitBy";
12081
11554
  import uniqueId6 from "lodash/uniqueId";
12082
11555
  import { matchSorter as matchSorter2 } from "match-sorter";
@@ -12304,7 +11777,7 @@ var MultiSelect = (_a) => {
12304
11777
  const errorMessageId = uniqueId6();
12305
11778
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12306
11779
  const labelControlProps = getLabelControlProps(props);
12307
- const baseProps = omit13(props, Object.keys(labelControlProps));
11780
+ const baseProps = omit12(props, Object.keys(labelControlProps));
12308
11781
  return /* @__PURE__ */ React83.createElement(LabelControl, __spreadProps(__spreadValues({
12309
11782
  id: `${id.current}-label`,
12310
11783
  htmlFor: `${id.current}-input`,
@@ -12325,7 +11798,7 @@ MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
12325
11798
 
12326
11799
  // src/molecules/NativeSelect/NativeSelect.tsx
12327
11800
  import React84, { useRef as useRef12 } from "react";
12328
- import omit14 from "lodash/omit";
11801
+ import omit13 from "lodash/omit";
12329
11802
  import uniqueId7 from "lodash/uniqueId";
12330
11803
  var import_caretDown2 = __toESM(require_caretDown());
12331
11804
  var NativeSelectBase = React84.forwardRef(
@@ -12390,7 +11863,7 @@ var NativeSelect = React84.forwardRef(
12390
11863
  const errorMessageId = uniqueId7();
12391
11864
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12392
11865
  const _b2 = getLabelControlProps(props), { "data-testid": dataTestId } = _b2, labelControlProps = __objRest(_b2, ["data-testid"]);
12393
- const baseProps = omit14(props, Object.keys(labelControlProps));
11866
+ const baseProps = omit13(props, Object.keys(labelControlProps));
12394
11867
  return /* @__PURE__ */ React84.createElement(LabelControl, __spreadProps(__spreadValues({
12395
11868
  id: `${id.current}-label`,
12396
11869
  htmlFor: id.current,
@@ -12634,7 +12107,7 @@ PageHeader2.SubHeader.displayName = "PageHeader.SubHeader";
12634
12107
 
12635
12108
  // src/molecules/PopoverDialog/PopoverDialog.tsx
12636
12109
  import React90 from "react";
12637
- import omit15 from "lodash/omit";
12110
+ import omit14 from "lodash/omit";
12638
12111
 
12639
12112
  // src/atoms/PopoverDialog/PopoverDialog.tsx
12640
12113
  import React89 from "react";
@@ -12689,11 +12162,11 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
12689
12162
  kind: "secondary-ghost",
12690
12163
  key: secondaryAction.text,
12691
12164
  dense: true
12692
- }, omit15(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React90.createElement(Popover2.Button, __spreadValues({
12165
+ }, omit14(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React90.createElement(Popover2.Button, __spreadValues({
12693
12166
  kind: "ghost",
12694
12167
  key: primaryAction.text,
12695
12168
  dense: true
12696
- }, omit15(primaryAction, "text")), primaryAction.text))));
12169
+ }, omit14(primaryAction, "text")), primaryAction.text))));
12697
12170
  }
12698
12171
  return child;
12699
12172
  };
@@ -13512,7 +12985,7 @@ SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
13512
12985
 
13513
12986
  // src/molecules/Textarea/Textarea.tsx
13514
12987
  import React105, { useRef as useRef13, useState as useState13 } from "react";
13515
- import omit16 from "lodash/omit";
12988
+ import omit15 from "lodash/omit";
13516
12989
  import toString2 from "lodash/toString";
13517
12990
  import uniqueId10 from "lodash/uniqueId";
13518
12991
  var TextareaBase = React105.forwardRef(
@@ -13536,7 +13009,7 @@ var Textarea = React105.forwardRef((props, ref) => {
13536
13009
  const errorMessageId = uniqueId10();
13537
13010
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13538
13011
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
13539
- const baseProps = omit16(props, Object.keys(labelControlProps));
13012
+ const baseProps = omit15(props, Object.keys(labelControlProps));
13540
13013
  return /* @__PURE__ */ React105.createElement(LabelControl, __spreadProps(__spreadValues({
13541
13014
  id: `${id.current}-label`,
13542
13015
  htmlFor: id.current,
@@ -13957,5 +13430,6 @@ export {
13957
13430
  useScrollTarget,
13958
13431
  useTableSelect,
13959
13432
  useTableSort,
13960
- useToast
13433
+ useToast,
13434
+ useToastContext
13961
13435
  };